POST /job/:db/:collection
Request:
{
"id": "nxz123bnj",
"trigger_time": 1667659342626,
"meta": {
// Any json that you want to pass on to the reciepent
},
"route": "gameServer" // The reciepient route
}
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
GET /job/:db/:collection/:id
Response 200:
{
"id": "nxz123bnj",
"trigger_time": 1667659342626,
"meta": {
// Any json that you want to pass on to the reciepent
},
"route": "gameServer" // The reciepient route
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
PUT /job/:db/:collection/:id
Request:
{
"id": "nxz123bnj",
"trigger_time": 1667659342626,
"meta": {
// Any json that you want to pass on to the reciepent
},
"route": "gameServer" // The reciepient route
}
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
DELETE /job/:db/:collection/:id
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
POST /route/:db
Request:
{
"id": "gameServer",
"type": "REST",
"webhook_url": "gameserver-dev-1.myorg.com/timer?action=endgame" // Your URL webhook
}
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
GET /route/:db/:id
Response 200:
{
"id": "gameServer",
"type": "REST",
"webhook_url": "gameserver-dev-1.myorg.com/timer?action=endgame" // Your URL webhook
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
PUT /route/:db/:id
Request:
{
"id": "gameServer",
"type": "REST",
"webhook_url": "gameserver-dev-1.myorg.com/timer?action=endgame" // Your URL webhook
}
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}
DELETE /route/:db/:id
Response 200:
{
"status": "ok"
}
Response 400:
{
"error": "Human readable reason", // For humans
"code": "E001" // For robots
}