Search
Duplicate

API 명세

Search
담당
기능
Method
URL
RequestHeader
RequestBody
ResponseHeader
ResponseBody
비고
장동하
POST
/api/users/login
{ username: String, password: String }
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: {} }
장동하
POST
/api/users/mail-auth
Authorization: Bearer jwtvalue
{ authcode: Integer }
{ message: String, success: Boolean, payload: {} }
장동하
PUT
/api/users/password
Authorization: Bearer jwtvalue
{ existingpassword: String, newpassword: String }
{ message: String, success: Boolean, payload: {} }
장동하
POST
/api/users/logout
Authorization: Bearer jwtvalue
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: {} }
이미 만료된 jwt를 반환.
김진훈
GET
/api/users/{userId}/profiles
{ message: String, success: Boolean, payload: { nickname: String, introduction: String, profileImageUrl: String } }
김진훈
PUT
POST
/api/users/{userId}/profiles
Authorization: Bearer jwtvalue
{ nickname: String, introduction: String }
{ message: String, success: Boolean, payload: { nickname: String, introduction: String, profileImageUrl: String } }
김진훈
POST
/api/users/{userId}/profiles/image?image={image}
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { imageUrl: String } }
김진훈
GET
/api/users/{userId}/profiles/image
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { imageUrl: String } }
김진훈
DELETE
/api/users/{userId}/profiles/image
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: {} }
김지현
POST
/api/posts
Authorization: Bearer jwtvalue
{ title: String, contents: String }
{ message: String, success: Boolean, payload: { id: Long, title: String, contents: Staring, username: String, likesCount: int, createdAt: LocalDateTime } }
김지현
GET
/api/posts/{postId}
{ message: String, success: Boolean, payload: { id: Long, title: String, contents: Staring, username: String, likesCount: int, createdAt: LocalDateTime } }
김지현
GET
/api/posts?page={page}&size={size}
Authorization: Bearer jwtvalue(required=false)
{ message: String, success: Boolean, payload: { [PostDto…] } }
김지현
PUT
/api/posts/{postId}
Authorization: Bearer jwtvalue
{ title: String, contents: String }
{ message: String, success: Boolean, payload: { title: String, contents: String } }
김지현
DELETE
/api/posts/{postId}
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: {} }
최혁
POST
/api/posts/{postId}/comments
Authorization: Bearer jwtvalue
{ text: String }
{ message: String, success: Boolean, payload: { username: String, text: String, comment_id: Long, date: ZonedDateTime, likesCount: int } }
최혁
GET
/api/posts/{postId}/comments
{ message: String, success: Boolean, payload: { [CommentDto…] } }
최혁
PUT
/api/posts/{postId}/comments/{commentId}
Authorization: Bearer jwtvalue
{ contents: String }
{ message: String, success: Boolean, payload: { username: String, text: String, comment_id: Long, date: ZonedDateTime, likesCount: int } }
최혁
DELETE
/api/posts/{postId}/comments/{commentId}
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: {} }
김지현
POST
/api/posts/{postId}/comments/{commentId}/likes
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { likesCount: Integer } }
김지현
DELETE
/api/posts/{postId}/comments/{commentId}/likes
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { likesCount: Integer } }
김지현
POST
/api/posts/{postId}/likes
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { likesCount: Integer } }
김지현
DELETE
/api/posts/{postId}/likes
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { likesCount: Integer } }
김진훈
POST
/api/users/{userId}/follows
Authorization: Bearer jwtvalue
{ message: String, success: Boolean, payload: { followers: [String…], followings: [Sring…] } }
김진훈
GET
/api/users/{userId}/follows
김진훈
DELETE
/api/users/{userId}/follows
Authorization: Bearer jwtvalue