-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgoodreads.http
51 lines (39 loc) · 1.07 KB
/
goodreads.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
GET http://localhost:3000/books/
###
GET http://localhost:3000/books/1/
###
POST http://localhost:3000/books/
Content-Type: application/json
{
"title": "Harry Potter and the Order of the Phoenix",
"authorId": 1,
"rating": 4.62,
"ratingCount": 126559,
"reviewCount": 611,
"description": "There is a door at the end of a silent corridor.",
"pages": 352,
"dateOfPublication": "May 1st 2003",
"editionLanguage": "English",
"price": 850,
"onlineStores": "Amazon,Audible,Indigo,Apple Books,Google Play,IndieBound"
}
###
PUT http://localhost:3000/books/41/
Content-Type: application/json
{
"title": "Harry Potter and the Order of the Phoenix",
"authorId": 1,
"rating": 5,
"ratingCount": 1000000,
"reviewCount": 711,
"description": "There is a door at the end of a silent corridor.",
"pages": 352,
"dateOfPublication": "May 1st 2003",
"editionLanguage": "English",
"price": 850,
"onlineStores": "Amazon,Audible,Indigo,Apple Books,Google Play,IndieBound"
}
###
DELETE http://localhost:3000/books/41/
###
GET http://localhost:3000/authors/1/books/