-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.http
More file actions
57 lines (41 loc) · 758 Bytes
/
requests.http
File metadata and controls
57 lines (41 loc) · 758 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
GET localhost:8080/games
###
POST localhost:8080/games
Content-Type: application/json
{
"title": "Catan 2",
"genre": "Strategy",
"platform": "Board Game",
"price": 29.99
}
###
POST localhost:8080/games
Content-Type: application/json
{
"title": "Exploding Kittens",
"genre": "Card Game",
"platform": "Board Game",
"price": 19.99
}
###
GET localhost:8080/games/1
###
PUT localhost:8080/games/2
Content-Type: application/json
{
"title": "Dominion",
"genre": "Card Game",
"platform": "Board Game",
"price": 49.99
}
###
PATCH localhost:8080/games/2/title
Content-Type: application/json
{
"idToUpdate": 2,
"title": "Dominion: Seaside"
}
###
DELETE localhost:8080/games/1
###
GET localhost:8080/games/platform/Desk%20Game