Republish Feed API¶
Republish taxonomy to rabbitMQ¶
Republish taxonomy - sports, categories, tournaments only to rqabbitMQ
Request parameters¶
| Stage | https://apg-s2s.online |
| Prod | https://apg-s2s.com |
| Path | /v1/sport/v1/republish/taxonomy |
| Method | POST |
| Headers | Authorization S2S API auth |
Content-Type: application/json | |
| Response Codes | 200, 202, 400 |
Request¶
| Query Params | Data Types | Description of property | Example |
|---|---|---|---|
| sport | string | resend taxonomy by sport (sport, categories, tournaments) | ?sport="Football" |
| isBatchRepublish | bool | if this field is true - resend data by 5 messages batch every 1 secondm if false, resend messages one by one | ?isBatchRepublish="true" |
Response¶
200 or 202 - Ok and data resend to raqbbitMQ 400 Bad Request (if sport is incorrect for example)
Republish events, markets, market results and scores to rabbitMQ for active events¶
Republish taxonomy - events, markets, market results and scores to rqabbitMQ for active events by filter (active - events that could be traded and have field "isActive": true)
Request parameters¶
| Stage | https://apg-s2s.online |
| Prod | https://apg-s2s.com |
| Path | /v1/sport/v1/republish/active |
| Method | POST |
| Headers | Authorization S2S API auth |
Content-Type: application/json | |
| Response Codes | 200, 202, 400 |
Request¶
| Params | Data Types | Description of property | Example |
|---|---|---|---|
| sport | string | resend taxonomy by sport (sport, categories, tournaments), if field is empty - repbulish taxonomy for all sports | "Football" |
| startDate (coululd be empty) | dateTime in ISO8601 | resend taxonomy for events that have last updated time grather then startDate | "2025-05-13T05:00:00Z" |
| endDateDate (coululd be empty) | dateTime in ISO8601 | resend taxonomy for events that have last updated time less then endDate | "2025-05-14T05:00:00Z" |
| isBatchRepublish | bool | if this field is true - resend data by 5 messages batch every 1 secondm if false, resend messages one by one | "true" |
Response¶
200, 202 Ok and data resend to raqbbitMQ (ti queues with events, markets, results, scores)
400 Bad Request (if sport is incorrect for example)
Republish events, markets, market results and scores to rabbitMQ for some eventIds¶
Republish taxonomy - events, markets, market results and scores to rqabbitMQ for events
Request parameters¶
| Stage | https://apg-s2s.online |
| Prod | https://apg-s2s.com |
| Path | /v1/sport/v1/republish/ |
| Method | POST |
| Headers | Authorization S2S API auth |
Content-Type: application/json | |
| Response Codes | 200, 202, 400 |
Request¶
Body contains array of strings, each string is eventId ["3213213", "123123"]
Response¶
200, 202 Ok and data resend to raqbbitMQ (ti queues with events, markets, results, scores)
400 Bad Request (if sport is incorrect for example)