API Category Endpoints
This document provides details about the endpoints used in the Funbooker Category API.
GET - Retrieve a list of all categories
Endpoint:
GET /api/partner/v1/categoriesDescription: This endpoint retrieves a list of all categories.
Response Example:
[
{
"id": 12345,
"name": "Bungee Jumping",
"parentId": 1,
"occasion": "entertainment"
},
{
"id": 123456,
"name": "Skydiving",
"parentId": 1,
"occasion": "entertainment"
}
]GET - Retrieve details of a specific category
Endpoint:
GET /api/partner/v1/categories/{categoryId}Description: This endpoint retrieves details of a specific category by their category id.
Path Parameters:
categoryId(int): The category's id.
Response Example:
{
"id": 123456,
"name": "Skydiving",
"parentId": 1,
"occasion": "entertainment"
}Last updated