Get a sport schema
GET/v2/schemas/sports/{sport}
GET
/v2/schemas/sports/{sport}
const url = 'https://api.ligr.live/rest/v2/schemas/sports/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.ligr.live/rest/v2/schemas/sports/example \ --header 'Authorization: Bearer <token>'Get the JSON Schema for a sport’s data shape. Returns the graphicBuilderSportSchema used by Fuse and code graphics.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”sport
required
string
Responses
Section titled “Responses”Ok
Media typeapplication/json
object
sport
required
string
schema
required
Construct a type with a set of properties K of type T
object
Examplegenerated
{ "sport": "example", "schema": {}}Request is invalid
Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Sport not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key has made too many requests
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}