-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.http
85 lines (61 loc) · 2.22 KB
/
client.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@game_id = 1
@economy_id = 1
###
# Health Check
GET http://localhost:3000/health
###
# List Game
GET http://localhost:3000/api/v1/games
Content-Type: application/json
###
# Create Game
POST http://localhost:3000/api/v1/games
Content-Type: application/json
###
# Get Game
GET http://localhost:3000/api/v1/games/{{game_id}}
Content-Type: application/json
###
# List Game Economy
GET http://localhost:3000/api/v1/games/{{game_id}}/economies
Content-Type: application/json
###
# Get Game Economy
GET http://localhost:3000/api/v1/games/{{game_id}}/economies/{{economy_id}}
Content-Type: application/json
###
# Create Game Economy
POST http://localhost:3000/api/v1/games/{{game_id}}/economies
Content-Type: application/json
###
# List Game Economy Item
GET http://localhost:3000/api/v1/games/{{game_id}}/economies/{{economy_id}}/items/2
Content-Type: application/json
###
# Create Game Economy Item
POST http://localhost:3000/api/v1/games/{{game_id}}/economies/{{economy_id}}/items
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryWURRmnmgcZ6sC6Sm
------WebKitFormBoundaryWURRmnmgcZ6sC6Sm
Content-Disposition: form-data; name="pinataMetadata"
{"name":"item"}
------WebKitFormBoundaryWURRmnmgcZ6sC6Sm
Content-Disposition: form-data; name="file"; filename="20230603155922_init.up.sql"
Content-Type: application/octet-stream
< ./internal/db/migrations/20230603155922_init.up.sql
------WebKitFormBoundaryWURRmnmgcZ6sC6Sm
Content-Disposition: form-data; name="file"; filename="20230727145647_add_users_and_api_keys_and_games_table.down.sql"
Content-Type: application/octet-stream
< ./internal/db/migrations/20230727145647_add_users_and_api_keys_and_games_table.down.sql
------WebKitFormBoundaryWURRmnmgcZ6sC6Sm
Content-Disposition: form-data; name="file"; filename="png-1mb.png"
Content-Type: application/octet-stream
< ./png-1mb.png
------WebKitFormBoundaryWURRmnmgcZ6sC6Sm--
###
# Enable Behavior Purchase Item With ETH
POST http://localhost:3000/api/v1/games/{{game_id}}/economies/{{economy_id}}/behaviors/purchase_item/enable
Content-Type: application/json
###
# Disable Behavior Purchase Item With ETH
POST http://localhost:3000/api/v1/games/{{game_id}}/economies/{{economy_id}}/behaviors/purchase_item/disable
Content-Type: application/json