POST eco/bookings

Request Information

URI Parameters

None.

Body Parameters

BookingPOST
NameDescriptionTypeAdditional information
ActivityId

integer

None.

Adventurer

Adventurer

None.

Date

date

None.

Pax

integer

None.

SessionId

integer

None.

SupplierUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "activityId": 1,
  "adventurer": {
    "contactNo": "sample string 1",
    "emailAddress": "sample string 2",
    "emergencyContactNo": "sample string 3",
    "fullName": "sample string 4",
    "id": 5,
    "rsaId": "sample string 6",
    "uid": "sample string 7"
  },
  "date": "2024-02-21T06:10:52.4454639+02:00",
  "pax": 3,
  "sessionId": 4,
  "supplierUid": "sample string 5"
}

application/xml, text/xml

Sample:
<BookingPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism.Bookings">
  <ActivityId>1</ActivityId>
  <Adventurer xmlns:d2p1="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism">
    <d2p1:ContactNo>sample string 1</d2p1:ContactNo>
    <d2p1:EmailAddress>sample string 2</d2p1:EmailAddress>
    <d2p1:EmergencyContactNo>sample string 3</d2p1:EmergencyContactNo>
    <d2p1:FullName>sample string 4</d2p1:FullName>
    <d2p1:Id>5</d2p1:Id>
    <d2p1:RsaId>sample string 6</d2p1:RsaId>
    <d2p1:Uid>sample string 7</d2p1:Uid>
  </Adventurer>
  <Date>2024-02-21T06:10:52.4454639+02:00</Date>
  <Pax>3</Pax>
  <SessionId>4</SessionId>
  <SupplierUid>sample string 5</SupplierUid>
</BookingPOST>

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 'BookingPOST'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>