POST Shuttle/SeatMap

Request Information

URI Parameters

None.

Body Parameters

ShuttleSitemapRequest
NameDescriptionTypeAdditional information
shuttleID

string

None.

departDate

date

None.

seatLayoutID

string

None.

scheduleCode

string

None.

userID

user API

string

None.

accessToken

access code getting from login

string

None.

Request Formats

application/json, text/json

Sample:
{
  "shuttleID": "sample string 1",
  "departDate": "2021-11-27T12:09:03.7797816+07:00",
  "seatLayoutID": "sample string 3",
  "scheduleCode": "sample string 4",
  "userID": "sample string 5",
  "accessToken": "sample string 6"
}

application/xml, text/xml

Sample:
<ShuttleSitemapRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 6</accessToken>
  <userID>sample string 5</userID>
  <departDate>2021-11-27T12:09:03.7797816+07:00</departDate>
  <scheduleCode>sample string 4</scheduleCode>
  <seatLayoutID>sample string 3</seatLayoutID>
  <shuttleID>sample string 1</shuttleID>
</ShuttleSitemapRequest>

Response Information

Resource Description

ShuttleSitemapResponse
NameDescriptionTypeAdditional information
rowCount

integer

None.

columnCount

integer

None.

seats

Collection of ShuttleSeatModel

None.

respTime

describe time in sending response

date

None.

userID

user ID to access API

string

None.

accessToken

access token that needed to access API

string

None.

status

SUCCESS or FAILED

string

None.

respMessage

detail message of response status

string

None.

Response Formats

application/json, text/json

Sample:
{
  "rowCount": 1,
  "columnCount": 2,
  "seats": [
    {
      "row": 1,
      "column": 2,
      "type": "sample string 3",
      "isAvailaible": true,
      "seatNumber": "sample string 5"
    },
    {
      "row": 1,
      "column": 2,
      "type": "sample string 3",
      "isAvailaible": true,
      "seatNumber": "sample string 5"
    }
  ],
  "respTime": "2021-11-27T12:09:03.795382+07:00",
  "userID": "sample string 4",
  "accessToken": "sample string 5",
  "status": "sample string 6",
  "respMessage": "sample string 7"
}

application/xml, text/xml

Sample:
<ShuttleSitemapResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cebes.DI.H2H.Api.Models">
  <accessToken>sample string 5</accessToken>
  <respMessage>sample string 7</respMessage>
  <respTime>2021-11-27T12:09:03.795382+07:00</respTime>
  <status>sample string 6</status>
  <userID>sample string 4</userID>
  <columnCount>2</columnCount>
  <rowCount>1</rowCount>
  <seats>
    <ShuttleSeatModel>
      <column>2</column>
      <isAvailaible>true</isAvailaible>
      <row>1</row>
      <seatNumber>sample string 5</seatNumber>
      <type>sample string 3</type>
    </ShuttleSeatModel>
    <ShuttleSeatModel>
      <column>2</column>
      <isAvailaible>true</isAvailaible>
      <row>1</row>
      <seatNumber>sample string 5</seatNumber>
      <type>sample string 3</type>
    </ShuttleSeatModel>
  </seats>
</ShuttleSitemapResponse>