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

Tournament Poster

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

Returns the poster of a tournament.

URL

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

Example Request

import requests

url = "http://127.0.0.1/v1/competitions/1/tournaments/33/image"

response = requests.get(url)

with open("downloaded_image.png", "wb") as f:
    f.write(response.content)

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. This field is populated only when an image was not sent with the request.
data array An array containing the data returned by the API. This field encapsulates the main payload of the response. This field is populated only when an image was not sent with the request.
message string A descriptive message providing information about any encountered errors. This field is populated only when the API response status is fail and an image was not sent with the request, and it helps identify the specific issue that occurred during the request processing.

Example Response

Code 200

alt text

Code 206
{
  "data": {
      "message": "Image not found"
  },
  "status": "fail"
}
Clone this wiki locally