OpenAPI Specification
Pets
The name of the pet
Scooby-Doo
The type of the pet
Dog
Possible values: Page index, starts from 1
1
Amount of records per page
20
Field used for sorting
id
Order used for sorting (asc or desc)
asc
Full-text search clause that can match multiple fields
%foo%
Optional list of IDs to filter the records
GET /v1/pets HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
}
],
"pageIndex": 1,
"pageSize": 20,
"totalPages": 7,
"totalCount": 123,
"hasPreviousPage": false,
"hasNextPage": true
}
Pet ID
GET /v1/pets/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
}
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The name of the pet
Scooby-Doo
The type of the pet
Dog
POST /v1/pets HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Scooby-Doo",
"petType": "Dog"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
}
Pet ID
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The name of the pet
Scooby-Doo
The type of the pet
Dog
PUT /v1/pets/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Scooby-Doo",
"petType": "Dog"
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
}
Pet ID
DELETE /v1/pets/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
}
Vaccines
The name of the vaccine
Acme
The description of the vaccine
%prevents from madness%
The pet type which the vaccine applies to
Dog
Possible values: The minimum duration of the vaccine in days
30
The maximum duration of the vaccine in days
90
Page index, starts from 1
1
Amount of records per page
20
Field used for sorting
id
Order used for sorting (asc or desc)
asc
Full-text search clause that can match multiple fields
%foo%
Optional list of IDs to filter the records
GET /v1/vaccines HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
],
"pageIndex": 1,
"pageSize": 20,
"totalPages": 7,
"totalCount": 123,
"hasPreviousPage": false,
"hasNextPage": true
}
Vaccine ID
GET /v1/vaccines/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The name of the vaccine
Acme
The description of the vaccine
Acme is a vaccine that prevents dogs from walking over water
The pet type which the vaccine applies to
Dog
The duration of the vaccine in days
365
POST /v1/vaccines HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
Vaccine ID
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The name of the vaccine
Acme
The description of the vaccine
Acme is a vaccine that prevents dogs from walking over water
The pet type which the vaccine applies to
Dog
The duration of the vaccine in days
365
PUT /v1/vaccines/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 167
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
Vaccine ID
DELETE /v1/vaccines/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
Pet Vaccination
The ID of the pet
The ID of the vaccine
Exact match of when the vaccine was applied at
Minimum date of when the vaccine was applied at
Maximum date of when the vaccine was applied at
Page index, starts from 1
1
Amount of records per page
20
Field used for sorting
id
Order used for sorting (asc or desc)
asc
Full-text search clause that can match multiple fields
%foo%
Optional list of IDs to filter the records
GET /v1/pet-vaccination HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
],
"pageIndex": 1,
"pageSize": 20,
"totalPages": 7,
"totalCount": 123,
"hasPreviousPage": false,
"hasNextPage": true
}
Pet vaccination ID
GET /v1/pet-vaccination/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The ID of the pet
The ID of the vaccine
When the vaccine was applied at
POST /v1/pet-vaccination HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 448
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
Pet vaccination ID
The object's unique identifier
When the object was created
When the object was last modified
Who modified the object last time
[email protected]
The ID of the pet
The ID of the vaccine
When the vaccine was applied at
PUT /v1/pet-vaccination/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 448
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
Pet vaccination ID
DELETE /v1/pet-vaccination/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"petId": "123e4567-e89b-12d3-a456-426614174000",
"vaccineId": "123e4567-e89b-12d3-a456-426614174000",
"appliedAt": "2025-07-04T11:16:09.305Z",
"pet": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"ownerId": "[email protected]",
"name": "Scooby-Doo",
"petType": "Dog"
},
"vaccine": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-07-04T11:16:09.305Z",
"createdBy": "[email protected]",
"modifiedAt": "2025-07-04T11:16:09.305Z",
"modifiedBy": "[email protected]",
"name": "Acme",
"description": "Acme is a vaccine that prevents dogs from walking over water",
"petType": "Dog",
"duration": 365
}
}
Last updated