Advanced API Endpoints
POST
methodDescription:
Create a new cat/owner
JSON Body:
{
"name": string,
"type": string,
"legs": number,
"tail": boolean,
"color": string,
"image": string,
"owner": string | null,
}
Response:
{
"id": string,
"name": string,
"type": string,
"legs": number,
"tail": boolean,
"color": string,
"image": string,
"owner": string | null,
"created_at": string,
"deleted_at": string | null,
"updated_at": string
}
PUT
methodDescription:
Update a cat/owner
JSON Body:
{
"name": string,
"type": string,
"legs": number,
"tail": boolean,
"color": string,
"image": string,
"owner": string | null,
}
Response:
{
"id": string,
"name": string,
"type": string,
"legs": number,
"tail": boolean,
"color": string,
"image": string,
"owner": string | null,
"created_at": string,
"deleted_at": string | null,
"updated_at": string
}
DELETE
methodDescription:
Delete a cat/owner
Response:
ok
