Endpoint:
GET https://api.i-as.dev/api/sport/category/list
Response:
This endpoint returns a list of sport categories with their respective IDs and titles.
[
{
"id": "string",
"title": "string"
}
// More data
]
Fields:
id
: The unique identifier for the sport category.title
: The title or name of the sport category.Endpoint:
GET https://api.i-as.dev/api/sport/:categoryID
Parameters:
categoryID
: The ID of the sport category (e.g., football
, basketball
, etc.)page={value}
– The page number to paginate the response.Response:
This endpoint returns a list of sports items belonging to a specific category, with details such as type, title, image, date, etc.
[
{
"id": "value",
"type": "string",
"slug": "slug",
"title": "string",
"category": "string",
"image": "url-img",
"date": "string"
}
// More data
]
Fields:
id
: The unique identifier for the sport item.type
: The type of the sport content (e.g., event, news).slug
: The slug (URL-friendly identifier) for the sport item.title
: The title of the sport item.category
: The category of the sport item (e.g., football
, basketball
).image
: The URL to the image associated with the sport item.date
: The date associated with the sport item (e.g., event date, publish date).Endpoint:
GET https://api.i-as.dev/api/sport/:type/:id/:slug
Response:
This endpoint returns detailed information about a specific sport item, such as its title, content, image, and date.
{
"title": "string",
"date": "string",
"image": "url-img",
"content": "string"
}
Fields:
title
: The title of the sport item.date
: The date associated with the sport item.image
: The URL to the image associated with the sport item.content
: Detailed content about the sport item (e.g., description, event details).:categoryID
with the actual category ID (e.g., football
, basketball
) and :type
, :id
, and :slug
with the respective identifiers when calling the :type/:id/:slug
endpoint.page={value}
parameter.