POST api/Bookings/BookingsForWeek

Request Information

URI Parameters

None.

Body Parameters

BookingRequest
NameDescriptionTypeAdditional information
StartDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "2025-07-06T12:19:04.871646+00:00"
}

text/html

Sample:
{"StartDate":"2025-07-06T12:19:04.871646+00:00"}

application/xml, text/xml

Sample:
<BookingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VetAPI.Models">
  <StartDate>2025-07-06T12:19:04.871646+00:00</StartDate>
</BookingRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BookingRequest'.

Response Information

Resource Description

Booking
NameDescriptionTypeAdditional information
BookingId

integer

None.

TimeSlotId

integer

None.

AspNetUserId

string

None.

Date

date

None.

PracticeId

integer

None.

PetId

integer

None.

ReasonDescription

string

None.

Status

string

None.

UsedSlots

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "TimeSlotId": 2,
  "AspNetUserId": "sample string 3",
  "Date": "2025-07-06T12:19:04.871646+00:00",
  "PracticeId": 5,
  "PetId": 1,
  "ReasonDescription": "sample string 6",
  "Status": "sample string 7",
  "UsedSlots": 8
}

text/html

Sample:
{"BookingId":1,"TimeSlotId":2,"AspNetUserId":"sample string 3","Date":"2025-07-06T12:19:04.871646+00:00","PracticeId":5,"PetId":1,"ReasonDescription":"sample string 6","Status":"sample string 7","UsedSlots":8}

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 'VetAPI.DataModel.AspNetRole' 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 'VetAPI.DataModel.AspNetRole' contains cycles and cannot be serialized if reference tracking is disabled.