-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTTPClient.http
More file actions
40 lines (31 loc) · 962 Bytes
/
HTTPClient.http
File metadata and controls
40 lines (31 loc) · 962 Bytes
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
GET http://localhost:9090/api/v1/health-check
### Save book
POST http://localhost:9090/api/v1/books
Content-Type: application/json
{
"title": "Harry Potter and Prisoner of Azkaban",
"description": "Harry Potter and Prisoner of Azkaban - Third book in the Harry potter series",
"published": true
}
### Save book
POST http://localhost:9090/api/v1/books
Content-Type: application/json
{
"title": "Harry Potter and the Order of the Phoenix",
"description": "Harry Potter and Prisoner of Azkaban - Fifth book in the Harry potter series",
"published": true
}
### Save books
POST http://localhost:9090/api/v1/books
Content-Type: application/json
{
"title": "Dummy book",
"description": "Dummy book - This is a book entry",
"published": false
}
### Get all Books
GET http://localhost:9090/api/v1/books
### Get Book by id
GET http://localhost:9090/api/v1/books/3
### Get Book by title pattern
GET http://localhost:9090/api/v1/books/title/potter