🔁APIs

Categories Endpoint

GEThttps://cm.test/api/categories
Response
Body
any of
Request
const response = await fetch('https://cm.test/api/categories', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

GEThttps://cm.test/api/categories/{model}
Path parameters
model*integer

The model ID

Response
Body
any of
Request
const response = await fetch('https://cm.test/api/categories/{model}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "message": "text"
}

Types Endpoint

GEThttps://cm.test/api/types
Response
Body
any of
Request
const response = await fetch('https://cm.test/api/types', {
    method: 'GET',
    headers: {},
});
const data = await response.json();

GEThttps://cm.test/api/types/{model}
Path parameters
model*integer

The model ID

Response
Body
any of
Request
const response = await fetch('https://cm.test/api/types/{model}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "message": "text"
}

Last updated