-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest-api.http
67 lines (52 loc) · 1.3 KB
/
rest-api.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Players API
POST http://localhost:8042/player/new
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
{
"name": "TestPlayer"
}
###
GET http://localhost:8042/player/stats
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
# ID must be used when you generated new player
PlayerID: 4017580f-e22d-3dba-bbe7-107fbb60b7eb
###
POST http://localhost:8042/player/move
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
# ID must be used when you generated new player
PlayerID: 4017580f-e22d-3dba-bbe7-107fbb60b7eb
[
{
"x": 7,
"y": 12
}
]
###
GET http://localhost:8042/player/interact
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
# ID must be used when you generated new player
PlayerID: 4017580f-e22d-3dba-bbe7-107fbb60b7eb
###
POST http://localhost:8042/player/interact
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
PlayerID: 4017580f-e22d-3dba-bbe7-107fbb60b7eb
{
"item_id": "4017580f-e22d-3dba-bbe7-107fbb60b7eb"
}
###
GET http://localhost:8042/world
Accept: */*
Content-Type: application/json;utf-8
Cache-Control: no-cache
# ID must be used when you generated new player
PlayerID: 4017580f-e22d-3dba-bbe7-107fbb60b7eb
###