-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerated-requests.http
More file actions
77 lines (64 loc) · 2.47 KB
/
Copy pathgenerated-requests.http
File metadata and controls
77 lines (64 loc) · 2.47 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
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
@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
###############################################################################
# Maintenance: Event Transformation - fix events stored without a revision (#4625)
#
# Fills an empty payload revision (legacy Axon Framework 4 events) with a value, so the events read
# cleanly under Axon Framework 5. Opens a dedicated Axon Server connection, replaces the affected
# events and applies the transformation.
#
# Requires:
# - running with the 'axonserver' Spring profile (axon.axonserver.enabled=true)
# - application.maintenance.enabled=true (default in application.yaml)
# - Axon Server up (licensed; internal-hostname=localhost): docker compose up -d
#
# Back up the Axon Server event volume before running - it rewrites the store in place.
# See docs/EVENT_REVISION_TRANSFORMATION.md.
###############################################################################
### Fill missing revision with the default "0.0.1" and apply
POST http://localhost:{{serverPort}}/maintenance/event-store/transformations/fill-missing-revision
Accept: application/json
### Fill missing revision with a custom value, then compact to reclaim disk
POST http://localhost:{{serverPort}}/maintenance/event-store/transformations/fill-missing-revision?revision=0.0.1&compact=true
Accept: application/json
### Verify: read an aggregate's event stream (replace {{dwellingId}} with an affected stream id)
GET http://localhost:{{serverPort}}/maintenance/event-store/streams/{{dwellingId}}/events
Accept: application/json