-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.http
More file actions
52 lines (40 loc) · 1.3 KB
/
app.http
File metadata and controls
52 lines (40 loc) · 1.3 KB
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
### Get List Games
GET http://localhost:53400/games HTTP/1.1
### Get Game By Id
GET http://localhost:53400/games/9h5j9k1l-6i2l-1j4k-5m0n-9i0j1k2l3m4n HTTP/1.1
### Create new Game 1
POST http://localhost:53400/games HTTP/1.1
Content-Type: application/json
{
"name": "Pepsiman",
"img": "https://upload.wikimedia.org/wikipedia/en/4/49/Pepsiman_%28PS1%29_cover_art.jpg",
"year": 1999,
"rate": 5
}
### Create new Game 2
POST http://localhost:53400/games HTTP/1.1
Content-Type: application/json
{
"name": "Metal Slug",
"img": "https://upload.wikimedia.org/wikipedia/en/a/ab/MetalSlugLogo.png",
"year": 1996,
"rate": 5
}
### Update Game By Id PUT
PUT http://localhost:53400/games/9h5j9k1l-6i2l-1j4k-5m0n-9i0j1k2l3m4n HTTP/1.1
Content-Type: application/json
{
"name": "Silent Hill",
"img": "https://upload.wikimedia.org/wikipedia/en/9/96/Silent_Hill_video_game_cover.png",
"year": 1999,
"rate": 9.3
}
### Update Game By Id PATCH
PATCH http://localhost:53400/games/9h5j9k1l-6i2l-1j4k-5m0n-9i0j1k2l3m4n HTTP/1.1
Content-Type: application/json
{
"name": "Silent Hill",
"img": "https://www.silenthillmemories.net/sh1/versions/pics/silent_hill_ps1_us_greatest_hits_01_front_cover.jpg"
}
### Delete Game By Id
DELETE http://localhost:53400/games/0i6k0l2m-7j3m-2k5l-6n1o-0j1k2l3m4n5o HTTP/1.1