GET api/Appointment

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Appointment
NameDescriptionTypeAdditional information
Id

integer

None.

AnimalId

integer

None.

DoctorId

integer

None.

RoomId

integer

None.

Motive

string

None.

Treatment

string

None.

Canceled

boolean

None.

Date

date

None.

StartTime

time interval

None.

EndTime

time interval

None.

Animal

Animal

None.

Doctor

Doctor

None.

Room

Room

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "AnimalId": 1,
    "DoctorId": 1,
    "RoomId": 1,
    "Motive": "sample string 5",
    "Treatment": "sample string 6",
    "Canceled": true,
    "Date": "2026-08-24T20:43:35.6057178-05:00",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "Animal": {
      "Id": 1,
      "Name": "sample string 2",
      "Species": "sample string 3",
      "Breed": "sample string 4",
      "Age": 1,
      "Weight": 1.0,
      "Color": "sample string 5",
      "Sex": "sample string 6",
      "ClientId": 1,
      "Appointments": [],
      "Client": {
        "Id": 1,
        "Name": "sample string 2",
        "Address": "sample string 3",
        "Nif": "sample string 4",
        "PhoneNumber": "sample string 5",
        "Email": "sample string 6",
        "Animals": []
      }
    },
    "Doctor": {
      "Id": 1,
      "Name": "sample string 2",
      "PhoneNumber": "sample string 3",
      "Speciality": "sample string 4",
      "Active": true,
      "Appointments": [],
      "DoctorSchedules": [
        {
          "Id": 1,
          "DoctorId": 1,
          "DayOfWeek": 64,
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567"
        }
      ]
    },
    "Room": {
      "Id": 1,
      "Type": "sample string 2",
      "UnderMaintenance": true,
      "Appointments": []
    }
  },
  {
    "Id": 1,
    "AnimalId": 1,
    "DoctorId": 1,
    "RoomId": 1,
    "Motive": "sample string 5",
    "Treatment": "sample string 6",
    "Canceled": true,
    "Date": "2026-08-24T20:43:35.6057178-05:00",
    "StartTime": "00:00:00.1234567",
    "EndTime": "00:00:00.1234567",
    "Animal": {
      "Id": 1,
      "Name": "sample string 2",
      "Species": "sample string 3",
      "Breed": "sample string 4",
      "Age": 1,
      "Weight": 1.0,
      "Color": "sample string 5",
      "Sex": "sample string 6",
      "ClientId": 1,
      "Appointments": [],
      "Client": {
        "Id": 1,
        "Name": "sample string 2",
        "Address": "sample string 3",
        "Nif": "sample string 4",
        "PhoneNumber": "sample string 5",
        "Email": "sample string 6",
        "Animals": []
      }
    },
    "Doctor": {
      "Id": 1,
      "Name": "sample string 2",
      "PhoneNumber": "sample string 3",
      "Speciality": "sample string 4",
      "Active": true,
      "Appointments": [],
      "DoctorSchedules": [
        {
          "Id": 1,
          "DoctorId": 1,
          "DayOfWeek": 64,
          "StartTime": "00:00:00.1234567",
          "EndTime": "00:00:00.1234567"
        }
      ]
    },
    "Room": {
      "Id": 1,
      "Type": "sample string 2",
      "UnderMaintenance": true,
      "Appointments": []
    }
  }
]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.