GET api/Pets/GetPets

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Pet
NameDescriptionTypeAdditional information
PetId

integer

None.

CustomerId

integer

None.

Name

string

None.

Breed

string

None.

Colour

string

None.

Sex

string

None.

DateOfBirth

date

None.

Species

string

None.

Comment

string

None.

PracticeId

integer

None.

DeceasedDate

date

None.

DeceasedReason

string

None.

CreatedDate

date

None.

Sterilised

boolean

None.

MicroChip

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PetId": 1,
    "CustomerId": 1,
    "Name": "sample string 2",
    "Breed": "sample string 3",
    "Colour": "sample string 4",
    "Sex": "sample string 5",
    "DateOfBirth": "2025-07-06T12:16:20.0463068+00:00",
    "Species": "sample string 6",
    "Comment": "sample string 7",
    "PracticeId": 8,
    "DeceasedDate": "2025-07-06T12:16:20.0619397+00:00",
    "DeceasedReason": "sample string 9",
    "CreatedDate": "2025-07-06T12:16:20.0619397+00:00",
    "Sterilised": true,
    "MicroChip": "sample string 11"
  },
  {
    "PetId": 1,
    "CustomerId": 1,
    "Name": "sample string 2",
    "Breed": "sample string 3",
    "Colour": "sample string 4",
    "Sex": "sample string 5",
    "DateOfBirth": "2025-07-06T12:16:20.0463068+00:00",
    "Species": "sample string 6",
    "Comment": "sample string 7",
    "PracticeId": 8,
    "DeceasedDate": "2025-07-06T12:16:20.0619397+00:00",
    "DeceasedReason": "sample string 9",
    "CreatedDate": "2025-07-06T12:16:20.0619397+00:00",
    "Sterilised": true,
    "MicroChip": "sample string 11"
  }
]

text/html

Sample:
[{"PetId":1,"CustomerId":1,"Name":"sample string 2","Breed":"sample string 3","Colour":"sample string 4","Sex":"sample string 5","DateOfBirth":"2025-07-06T12:16:20.0463068+00:00","Species":"sample string 6","Comment":"sample string 7","PracticeId":8,"DeceasedDate":"2025-07-06T12:16:20.0619397+00:00","DeceasedReason":"sample string 9","CreatedDate":"2025-07-06T12:16:20.0619397+00:00","Sterilised":true,"MicroChip":"sample string 11"},{"PetId":1,"CustomerId":1,"Name":"sample string 2","Breed":"sample string 3","Colour":"sample string 4","Sex":"sample string 5","DateOfBirth":"2025-07-06T12:16:20.0463068+00:00","Species":"sample string 6","Comment":"sample string 7","PracticeId":8,"DeceasedDate":"2025-07-06T12:16:20.0619397+00:00","DeceasedReason":"sample string 9","CreatedDate":"2025-07-06T12:16:20.0619397+00:00","Sterilised":true,"MicroChip":"sample string 11"}]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.AspNetUser, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[VetAPI.DataModel.AspNetUser, VetAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.