CatenaApiKeys
Enum Value | Description |
---|---|
0 | NoHintFlags |
1 | Shutdown |
2 | WillingToWait |
4 | WillingToShutdown |
8 | Full |
16 | NotFull |
On the right hand side of this page, you will see a list of "Servers".
To configure which server is shown in example requests:
domain
environment variable.curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/server/request_match \
-H 'Content-Type: application/json' \
-d '{
"serverId": "string",
"requirements": "string"
}'
{ "match": { "matchId": "string", "playerIds": [ … ], "matchProperties": "string", "playerProperties": { … } } }
Optional flags hinting intention by requester/responder These are bit flags - values must be powers of 2! Prefer integer values in JSON-encoded requests to avoid generic parse errors due to typos.
Enum Value | Description |
---|---|
0 | NoHintFlags |
1 | Shutdown |
2 | WillingToWait |
4 | WillingToShutdown |
8 | Full |
16 | NotFull |
curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/server/match_ready \
-H 'Content-Type: application/json' \
-d '{
"serverId": "string",
"matchId": "string",
"connectionDetails": "string",
"hintFlags": "HINT_FLAG_NO_HINT_FLAGS"
}'
Success
TODO: anything the server needs to know from the backend - proceed with match? (what if a client can't get the ready event?)
Optional flags hinting intention by requester/responder These are bit flags - values must be powers of 2! Prefer integer values in JSON-encoded requests to avoid generic parse errors due to typos.
Enum Value | Description |
---|---|
0 | NoHintFlags |
1 | Shutdown |
2 | WillingToWait |
4 | WillingToShutdown |
8 | Full |
16 | NotFull |
{ "matchId": "string", "hintFlags": "HINT_FLAG_NO_HINT_FLAGS" }
Optional flags hinting intention by requester/responder These are bit flags - values must be powers of 2! Prefer integer values in JSON-encoded requests to avoid generic parse errors due to typos.
Enum Value | Description |
---|---|
0 | NoHintFlags |
1 | Shutdown |
2 | WillingToWait |
4 | WillingToShutdown |
8 | Full |
16 | NotFull |
curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/server/end_match \
-H 'Content-Type: application/json' \
-d '{
"serverId": "string",
"matchId": "string",
"hintFlags": "HINT_FLAG_NO_HINT_FLAGS"
}'
Success
Optional flags hinting intention by requester/responder These are bit flags - values must be powers of 2! Prefer integer values in JSON-encoded requests to avoid generic parse errors due to typos.
Enum Value | Description |
---|---|
0 | NoHintFlags |
1 | Shutdown |
2 | WillingToWait |
4 | WillingToShutdown |
8 | Full |
16 | NotFull |
{ "matchId": "string", "hintFlags": "HINT_FLAG_NO_HINT_FLAGS" }
curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/servers \
-H 'Content-Type: application/json' \
-d '{}'
{ "servers": [ { … } ] }
curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/server/deallocate \
-H 'Content-Type: application/json' \
-d '{
"serverId": "string"
}'
Success
The server state as in its capability to request matches Note: This is intentionally a subset of the specific states that exist inside the Catena Match Broker Prefer integer values in JSON-encoded requests to avoid generic parse errors due to typos.
Enum Value | Description |
---|---|
0 | Unspecified |
1 | Pending |
2 | Available |
3 | Full |
{ "success": true, "state": "SERVER_STATE_UNSPECIFIED", "matches": [ { … } ] }
curl -i -X POST \
https://docs.catenatools.com/_mock/apis/catena-tools-core/api/v1/server/allocate \
-H 'Content-Type: application/json' \
-d '{
"match": {
"matchId": "string",
"playerIds": [
"string"
],
"matchProperties": "string",
"playerProperties": {
"property1": "string",
"property2": "string"
}
}
}'