*In : header, path, query, body
Name
Type
In
Description
loginId
string
body
login id
password
string
body
password
nickname
string
body
nickname
{
"message" : " ID already exists"
}
Name
Type
In
Description
loginId
string
body
login id
password
string
body
password
{
"accessToken" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJsb2dpbklkIjoibXlJZDUzMTU0MjU1IiwiaWF0IjoxNjE1NzA5MzcwfQ.mI_3WXnutL39Z8im68Kx6Rhi0AYMi-atEEO_yv1VJZw"
}
Name
Type
In
Description
Authorization
string
header
accessToken
{
"id" : 35 ,
"loginId" : " myId" ,
"nickname" : " myNickname" ,
"iat" : 1615867236
}
Name
Type
In
Description
-
-
-
-
{
{
"id" : 1 ,
"title" : " asdf" ,
"content" : " 22131" ,
"reviewer" : " Granzort" ,
"created_at" : " 2019-12-31T15:00:00.000Z" ,
"updated_at" : " 2019-12-31T15:00:00.000Z" ,
"book_title" : " 차라투스트라는 이렇게 말했다" ,
"book_author" : " 니체" ,
"salon" : " G salon" ,
"space" : null
},
}
Name
Type
In
Description
-
-
-
-
[
{
"id" : 1 ,
"content" : " 32" ,
"page" : 123 ,
"quoter" : " Granzort" ,
"created_at" : " 2019-12-31T15:00:00.000Z" ,
"updated_at" : " 2019-12-31T15:00:00.000Z" ,
"book_title" : " 차라투스트라는 이렇게 말했다" ,
"book_author" : " 니체" ,
"salon" : " G salon" ,
"space" : null
},
]
Name
Type
In
Description
spaceId
string
path
space id
{
"id" : 3 ,
"name" : " my space" ,
"owner_id" : 35 ,
"owner_nickname" : " myNickname" ,
"books" : [
{
"id" : 12 ,
"title" : " bookkkkk" ,
"author" : " mememem" ,
"description" : " anananan"
}
]
}
PATCH /api/space/[spaceId]
Name
Type
In
Description
spaceId
string
path
space id
name
string
body
new space name
{
"message" : " modified successfully"
}
Space - Get a Book in the Space
GET /api/space/[spaceId]/book/[bookId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
{
"id" : 12 ,
"title" : " bookkkkk" ,
"author" : " mememem" ,
"description" : " anananan" ,
"reviews" : [
{
"id" : 8 ,
"title" : " adsfaf" ,
"content" : " ddddd" ,
"reviewer" : " myNickname" ,
"created_at" : " 2021-03-16T05:19:51.000Z" ,
"updated_at" : " 2021-03-16T05:19:51.000Z" ,
"book_title" : " bookkkkk" ,
"book_author" : " mememem" ,
"salon" : null ,
"space" : " update"
},
],
"quotes" : [
{
"id" : 6 ,
"content" : " myquotes" ,
"page" : 213 ,
"quoter" : " myNickname" ,
"created_at" : " 2021-03-16T08:15:30.000Z" ,
"updated_at" : " 2021-03-16T08:15:30.000Z" ,
"book_title" : " bookkkkk" ,
"book_author" : " mememem" ,
"salon" : null ,
"space" : " update"
},
]
}
Space - Add a Book to My Space
POST /api/space/[spaceId]/book
Name
Type
In
Description
spaceId
string
path
space id
title
string
body
book title
author
string
body
book author
description
string
body
book description
Space - Delete a Book from My Space
DELETE /api/space/[spaceId]/book/[bookId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
POST /api/space/[spaceId]/book/[bookId]/review
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
title
string
body
review title
content
string
body
review content
PATCH /api/space/[spaceId]/book/[bookId]/review/[reviewId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
reviewId
string
path
review id
title
string
body
new review title
content
string
body
new review content
{
"message" : " modified successfully"
}
DELETE /api/space/[spaceId]/book/[bookId]/review/[reviewId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
reviewId
string
path
review id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Space - Get all Review Comments in a Review
GET /api/space/[spaceId]/book/[bookId]/review/[reviewId]/comment
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
reviewId
string
path
review id
[
{
"id" : 5 ,
"comment" : " ASDFASDF" ,
"created_at" : " 2019-12-31T15:00:00.000Z" ,
"updated_at" : " 2019-12-31T15:00:00.000Z" ,
"commenter" : " myNickname"
}
]
Space - Create a Review Comment
POST /api/space/[spaceId]/book/[bookId]/review/[reviewId]/comment
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
comment
string
body
review comment
Space - Modify a Review Comment
PATCH /api/space/[spaceId]/book/[bookId]/review/[reviewId]/comment/[commentId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
reviewId
string
path
review id
commentId
string
path
comment id
comment
string
body
review comment
{
"message" : " modified successfully"
}
Space - Delete a Review Comment
DELETE /api/space/[spaceId]/book/[bookId]/review/[reviewId]/comment/[commentId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
reviewId
string
path
review id
commentId
string
path
comment id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
POST /api/space/[spaceId]/book/[bookId]/quote
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
content
string
body
quote content
page
string
body
quote page
PATCH /api/space/[spaceId]/book/[bookId]/quote/[quoteId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
quoteId
string
path
quote id
content
string
body
new quote content
page
string
body
new quote page
{
"message" : " modified successfully"
}
DELETE /api/space/[spaceId]/book/[bookId]/quote/[quoteId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
quoteId
string
path
quote id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Space - Get all quote Comments in a Quote
GET /api/space/[spaceId]/book/[bookId]/quote/[quoteId]/comment
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
quoteId
string
path
quote id
[
{
"id" : 5 ,
"comment" : " mycommmmment for quote" ,
"created_at" : " 2021-03-16T08:17:01.000Z" ,
"updated_at" : " 2021-03-16T08:17:01.000Z" ,
"commenter" : " myNickname"
},
]
Space - Create a Quote Comment
POST /api/space/[spaceId]/book/[bookId]/quote/[quoteId]/comment
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
comment
string
body
quote comment
Space - Modify a Quote Comment
PATCH /api/space/[spaceId]/book/[bookId]/quote/[quoteId]/comment/[commentId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
quoteId
string
path
quote id
commentId
string
path
comment id
comment
string
body
quote comment
{
"message" : " modified successfully"
}
Space - Delete a Quote Comment
DELETE /api/space/[spaceId]/book/[bookId]/quote/[quoteId]/comment/[commentId]
Name
Type
In
Description
spaceId
string
path
space id
bookId
string
path
book id
quoteId
string
path
quote id
commentId
string
path
comment id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Name
Type
In
Description
name
string
body
salon name
POST /api/salon/[salonId]
Name
Type
In
Description
salonId
string
path
salon id
{
"id" : 7 ,
"name" : " my first salon updated" ,
"creator_nickname" : " myNickname" ,
"books" : [
{
"id" : 16 ,
"title" : " add book" ,
"author" : " add author" ,
"description" : " desdcccc"
}
],
"participants" : [
{
"id" : 35 ,
"login_id" : " myId" ,
"nickname" : " myNickname"
}
]
}
Name
Type
In
Description
name
string
body
salon name
PATCH /api/salon/[salonId]
Name
Type
In
Description
salonId
string
path
salon id
name
string
body
new salon name
{
"message" : " modified successfully"
}
Name
Type
In
Description
salonId
string
path
salon id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Salon - Get a Book in the Salon
GET /api/salon/[salonId]/book/[bookId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
{
"id" : 16 ,
"title" : " add book" ,
"author" : " add author" ,
"description" : " desdcccc" ,
"reviews" : [
{
"id" : 13 ,
"title" : " my review" ,
"content" : " my salon review" ,
"reviewer" : " myNickname" ,
"created_at" : " 2021-03-16T12:35:37.000Z" ,
"updated_at" : " 2021-03-16T12:35:37.000Z" ,
"book_title" : " add book" ,
"book_author" : " add author" ,
"salon" : " my first salon updated" ,
"space" : null
},
],
"quotes" : [
{
"id" : 11 ,
"content" : " my comment" ,
"page" : 123 ,
"quoter" : " myNickname" ,
"created_at" : " 2021-03-16T12:41:05.000Z" ,
"updated_at" : " 2021-03-16T12:41:05.000Z" ,
"book_title" : " add book" ,
"book_author" : " add author" ,
"salon" : " my first salon updated" ,
"space" : null
},
]
}
Salon - Add a Book to the Salon
POST /api/salon/[salonId]/book
Name
Type
In
Description
salonId
string
path
salon id
title
string
body
book title
author
string
body
book author
description
string
body
book description
Salon - Delete a Book from the Salon
DELETE /api/salon/[salonId]/book/[bookId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
{ "message" : " deleted successfully" }
{
"messgage" : " no items to delete"
}
POST /api/salon/[salonId]/book/[bookId]/review
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
title
string
body
review title
content
string
body
review content
PATCH /api/salon/[salonId]/book/[bookId]/review/[reviewId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
reviewId
string
path
review id
title
string
body
new review title
content
string
body
new review content
{
"message" : " modified successfully"
}
DELETE /api/salon/[salonId]/book/[bookId]/review/[reviewId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
reviewId
string
path
review id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Salon - Get all Review Comments in a Review
GET /api/salon/[salonId]/book/[bookId]/review/[reviewId]/comment
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
reviewId
string
path
review id
[
{
"id" : 9 ,
"comment" : " sadfadfkah" ,
"created_at" : " 2021-03-16T07:24:00.000Z" ,
"updated_at" : " 2021-03-16T07:24:00.000Z" ,
"commenter" : " myNickname"
},
]
Salon - Create a Review Comment
POST /api/salon/[salonId]/book/[bookId]/review/[reviewId]/comment
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
comment
string
body
review comment
Salon - Modify a Review Comment
PATCH /api/salon/[salonId]/book/[bookId]/review/[reviewId]/comment/[commentId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
reviewId
string
path
review id
commentId
string
path
comment id
comment
string
body
review comment
{
"message" : " modified successfully"
}
Salon - Delete a Review Comment
DELETE /api/salon/[salonId]/book/[bookId]/review/[reviewId]/comment/[commentId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
reviewId
string
path
review id
commentId
string
path
comment id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
POST /api/salon/[salonId]/book/[bookId]/quote
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
content
string
body
quote content
page
string
body
quote page
PATCH /api/salon/[salonId]/book/[bookId]/quote/[quoteId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
quoteId
string
path
quote id
content
string
body
new quote content
page
string
body
new quote page
{
"message" : " modified successfully"
}
DELETE /api/salon/[salonId]/book/[bookId]/quote/[quoteId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
quoteId
string
path
quote id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}
Salon - Get all quote Comments in a Quote
GET /api/salon/[salonId]/book/[bookId]/quote/[quoteId]/comment
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
quoteId
string
path
quote id
[
{
"id" : 12 ,
"comment" : " my comment" ,
"created_at" : " 2021-03-16T12:43:00.000Z" ,
"updated_at" : " 2021-03-16T12:43:00.000Z" ,
"commenter" : " myNickname"
},
]
Salon - Create a Quote Comment
POST /api/salon/[salonId]/book/[bookId]/quote/[quoteId]/comment
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
comment
string
body
quote comment
Salon - Modify a Quote Comment
PATCH /api/salon/[salonId]/book/[bookId]/quote/[quoteId]/comment/[commentId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
quoteId
string
path
quote id
commentId
string
path
comment id
comment
string
body
quote comment
{
"message" : " modified successfully"
}
Salon - Delete a Quote Comment
DELETE /api/salon/[salonId]/book/[bookId]/quote/[quoteId]/comment/[commentId]
Name
Type
In
Description
salonId
string
path
salon id
bookId
string
path
book id
quoteId
string
path
quote id
commentId
string
path
comment id
{
"message" : " deleted successfully"
}
{
"messgage" : " no items to delete"
}