Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Referees

Marc Orfila Carreras edited this page Aug 6, 2023 · 1 revision

Returns the referees of a tournament.

URL

GET /v1/competitions/<competition_id>/tournaments/<tournament_id>/referees

Example Request

import requests

url = "http://127.0.0.1/v1/competitions/3/tournaments/3009/referees"

response = requests.get(url)

print(response.json())

Response Parameters

Name Type Description
status string The status of the API response. Supported values: success or fail. This field indicates whether the API request was successful or encountered an error.
data array An array containing the data returned by the API. This field encapsulates the main payload of the response.
message string A descriptive message providing information about any encountered errors. This field is populated only when the API response status is fail, and it helps identify the specific issue that occurred during the request processing.

Example Response

Code 200
{
  "data": [
    {
      "name": "Josetxu Sanchíz"
    },
    {
      "name": "Eduardo Willers"
    }
  ],
  "status": "success"
}
Code 206
{
  "data": {
      "message": "The referees were not found"
  },
  "status": "fail"
}
Clone this wiki locally