-
Notifications
You must be signed in to change notification settings - Fork 0
API
JinHo Kim edited this page May 21, 2023
·
4 revisions
Request GET /auth/redirect/{authProvider}
Response 303
Request GET /auth/{authProvider}/sign-in?code
Response 200
{
accessToken: string
}
Request GET /members/profile?username={username}
Response 200
{
"id": int,
"username": string,
"profileImage": string,
"name": string,
"biography": string,
"followerCnt": int,
"followingCnt": int,
"isFollowing": boolean
}
Request GET /members/me
Response 200
{
"id": int,
"name": string,
"usename": string,
"profileImage": string,
"name": string,
"biography": string,
"email": string
}
Request POST /members/me multipart/form-data
body
{
"username": string,
"biography": string
}
image
Response 200
Request GET /members/search?username={username}&page={page}
Response 200
{
"members": [
{
"id": int,
"username": string,
"profileImage": string
},
{
"id": int,
"username": string,
"profileImage": string
}
],
"last": boolean,
"offset": int
}
Request POST /members/{memberId}/follow
Response 200
Request DELETE /members/{memberId}/follow
Response 200
Request POST /members/device
{
"token": string
}
Response 200
Request GET /feed/me?page={page}
Response 200
{
"feed": [
{
"id": int,
"username": string,
"images": [
"imageUrl": string,
"imageUrl": string
],
"likeCnt": int,
"content": string,
"createdAt": yyyy-MM-dd'T'HH:mm:ss,
"isLike": boolean
},
{
"id": int,
"username": string,
"images": [
"imageUrl": string,
"imageUrl": string
],
"likeCnt": int,
"content": string,
"createdAt": yyyy-MM-dd'T'HH:mm:ss,
"isLike": boolean
}
],
"last": boolean,
"offset": int
}
Request GET /feed/timeline?page={page}
Response 200
{
"timeline": [
{
"id": int,
"imageUrl": string,
},
{
"id": int,
"imageUrl": string,
}
],
"last": boolean,
"offset": int
}
Request POST /posts multipart/form-data
body
{
"content": string"
}
Response 200
Request GET /posts/{postId}
Response 200
{
"id": int,
"authorId": int,
"authorUsername": string,
"authorProfile": string,
"images": [
"imageUrl": string,
"imageUrl": string
],
"likeCnt": int,
"content": string,
"createdAt": yyyy-MM-dd'T'HH:mm:ss,
"isLike": boolean
}
Request DELETE /posts
Response 200
Request POST /posts/{postId}/like
Response 200
Request DELETE /posts/{postId}/like
Response 200
Request GET /posts/{postId}/comments?page={page}
Response 200
{
"comments": [
{
"id": int
"authorId": int,
"authorProfile": string,
"authorUsername": string,
"content": string,
"createdAt": yyyy-MM-dd'T'HH:mm:ss
"content": string
}
],
"last": boolean,
"offset": int
}
Request POST /posts/{postId}/comments
{
"content": string
}
Response 200
Request DELETE /posts/{postId}/comments
Response 200
Request GET /alarms?page={page}
Response 200
{
"alarms": [
{
"id": int,
"text": string,
"read": boolean
}
],
"last": boolean,
"offset": int
}
Request POST /alarms/{alarmId}/read
Response 200