Referee APP - Pregame
Create Pregame
POST
/v1/referee/pregames
💡
This request requires “PB-API-TOKEN” from the platforms.
Request
{
"payload":{
"uuid": "b06d4cde-c63c-4580-9e9b-7ab2a96e2341",
"match_uuid":"c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
"game_number":2,
"serving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"receiving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"left_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"right_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"first_serve_team_one_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"first_serve_team_two_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"date_created":"2022-11-30T14:23:50.315Z"
}
}
Response
{
"result": {
"uuid": "b06d4cde-c63c-4580-9e9b-7ab2a96e2341",
"match_uuid":"c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
"game_number":2,
"serving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"receiving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"left_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"right_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"first_serve_team_one_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"first_serve_team_two_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"date_created":"2022-11-30T14:23:50.315Z",
"uuid":"a148ca1e-f4c6-4f3a-94e8-62e1dc2fa945"
}
}
Delete Pregame
DELETE
/v1/referee/pregames/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Response
Empty
List pregames
GET
/v1/referee/pregames?match_uuid={match_uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Query param | Description |
---|---|
retrieve_all | Retrieve all results. |
Response
{
"total_records": "2",
"results": [
{
"uuid": "b06d4cde-c63c-4580-9e9b-7ab2a96e2341",
"match_uuid":"c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
"game_number":2,
"serving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"receiving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"left_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"right_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"first_serve_team_one_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"first_serve_team_two_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"date_created":"2022-11-30T14:23:50.315Z",
"uuid":"a148ca1e-f4c6-4f3a-94e8-62e1dc2fa945"
},..
]
}
List Single Pregame
GET
/v1/referee/pregames/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Response
{
"result": {
"uuid": "b06d4cde-c63c-4580-9e9b-7ab2a96e2341",
"match_uuid":"c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
"game_number":2,
"serving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"receiving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"left_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"right_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"first_serve_team_one_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"first_serve_team_two_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"date_created":"2022-11-30T14:23:50.315Z",
"uuid":"a148ca1e-f4c6-4f3a-94e8-62e1dc2fa945"
}
}
Update Pregame
PUT
/v1/referee/pregames/{uuid}
💡
This request requires “PB-API-TOKEN” from the platforms.
Response
{
"payload": {
"uuid": "b06d4cde-c63c-4580-9e9b-7ab2a96e2341",
"match_uuid":"c0e23d7a-e1ea-4080-806d-230ee5ab59d2",
"game_number":2,
"serving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"receiving_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"left_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"right_of_umpire_team_uuid":"48ed76d8-a7df-4536-a077-7e3c3ca0d3fe",
"first_serve_team_one_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"first_serve_team_two_player_uuid":"dfa1d882-c748-43fc-8402-1426dcd5dc07",
"date_created":"2022-11-30T14:23:50.315Z",
"uuid":"a148ca1e-f4c6-4f3a-94e8-62e1dc2fa945"
}
}