POST api/VendingMachine/ping

POST api/VendingMachine/ping

Send Timestamp of request; Server answers with timestamp of its own

Request Information

URI Parameters

None.

Body Parameters

timestamp

Ping
NameDescriptionTypeAdditional information
Timestamp

Timestamp

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Timestamp": "2026-04-14T03:19:28.7201127+00:00"
}

application/xml, text/xml

Sample:
<Ping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <Timestamp>2026-04-14T03:19:28.7201127+00:00</Timestamp>
</Ping>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Timestamp, error_id and message

ResponsePing
NameDescriptionTypeAdditional information
TimeStamp

Timestamp

date

None.

ID_Error

ID of the error

integer

None.

Message

Message (in case of error)

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TimeStamp": "2026-04-14T03:19:28.7201127+00:00",
  "ID_Error": 2,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<ResponsePing xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KOSTIFC">
  <ID_Error>2</ID_Error>
  <Message>sample string 3</Message>
  <TimeStamp>2026-04-14T03:19:28.7201127+00:00</TimeStamp>
</ResponsePing>