-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerated-requests.http
More file actions
49 lines (40 loc) · 1 KB
/
generated-requests.http
File metadata and controls
49 lines (40 loc) · 1 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
@serverPort = 3773
### BuildDwelling
@gameId = scenario-1
@playerId = player-1
@dwellingId = dwelling-1
### BuildDwelling
PUT http://localhost:{{serverPort}}/games/{{gameId}}/dwellings/{{dwellingId}}
Content-Type: application/json
X-Player-Id: {{playerId}}
{
"creatureId": "angel",
"costPerTroop": {
"gold": 3000,
"gems": 1
}
}
### IncreaseAvailableCreatures
PUT http://localhost:{{serverPort}}/games/{{gameId}}/dwellings/{{dwellingId}}/available-creatures-increases
Content-Type: application/json
X-Player-Id: {{playerId}}
{
"creatureId": "angel",
"increaseBy": 5
}
### RecruitCreature
PUT http://localhost:{{serverPort}}/games/{{gameId}}/dwellings/{{dwellingId}}/creature-recruitments
Content-Type: application/json
X-Player-Id: {{playerId}}
{
"creatureId": "angel",
"armyId": "army-1",
"quantity": 3,
"expectedCost": {
"gold": 9000,
"gems": 3
}
}
### Dwelling read model
GET http://localhost:{{serverPort}}/games/{{gameId}}/dwellings/{{dwellingId}}
Content-Type: application/json