POST api/Transport/GetArrivals

Request Information

URI Parameters

None.

Body Parameters

TransportGetArrivalsRequest
NameDescriptionTypeAdditional information
datum

date

None.

maksimalnoSteviloIntervencij

integer

None.

idTransport

integer

None.

intervention

string

None.

Request Formats

application/json, text/json

Sample:
{
  "datum": "2025-12-11T02:52:37.7562282+01:00",
  "maksimalnoSteviloIntervencij": 1,
  "idTransport": 1,
  "intervention": "sample string 1"
}

application/xml, text/xml

Sample:
<TransportGetArrivalsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <IdTransport>1</IdTransport>
  <Intervention>sample string 1</Intervention>
</TransportGetArrivalsRequest>

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

Response Information

Resource Description

TransportGetArrivalsResponse
NameDescriptionTypeAdditional information
transports

Collection of Transport

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "transports": [
    {
      "id": 1,
      "idOrder": 1,
      "orderNumber": "sample string 1",
      "workUnitCreator": "sample string 2",
      "idWorkUnitCreator": 1,
      "workUnitDispatcher": "sample string 3",
      "idWorkUnitDispatcher": 1,
      "workUnitTransporter": "sample string 4",
      "idWorkUnitTransporter": 1,
      "intervention": "sample string 5",
      "created": "2025-12-11T02:52:37.7562282+01:00",
      "changed": "2025-12-11T02:52:37.7562282+01:00",
      "statuses": {
        "drafted": "2025-12-11T02:52:37.7562282+01:00",
        "ordered": "2025-12-11T02:52:37.7562282+01:00",
        "received": "2025-12-11T02:52:37.7562282+01:00",
        "evaluated": "2025-12-11T02:52:37.7562282+01:00",
        "evaluateResult": true,
        "assigned": "2025-12-11T02:52:37.7562282+01:00",
        "accepted": "2025-12-11T02:52:37.7562282+01:00",
        "onRoute": "2025-12-11T02:52:37.7562282+01:00",
        "onScene": "2025-12-11T02:52:37.7562282+01:00",
        "atPatient": "2025-12-11T02:52:37.7562282+01:00",
        "returning": "2025-12-11T02:52:37.7562282+01:00",
        "atDestination": "2025-12-11T02:52:37.7562282+01:00",
        "patientHandedOver": "2025-12-11T02:52:37.7562282+01:00",
        "patientAccepted": "2025-12-11T02:52:37.7562282+01:00",
        "toBase": "2025-12-11T02:52:37.7562282+01:00",
        "available": "2025-12-11T02:52:37.7562282+01:00",
        "complete": "2025-12-11T02:52:37.7562282+01:00",
        "aborted": "2025-12-11T02:52:37.7562282+01:00",
        "abortReason": "sample string 1",
        "billed": "2025-12-11T02:52:37.7562282+01:00",
        "evaluateResultDescription": "sample string 2"
      },
      "from": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:52:37.7562282+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "to": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:52:37.7562282+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "patient": {
        "kZZ": "sample string 1",
        "name": "sample string 2",
        "surname": "sample string 3",
        "birthDate": "2025-12-11T02:52:37.7562282+01:00",
        "sex": "sample string 4",
        "email": "sample string 5",
        "phone": "sample string 6",
        "mobility": "sample string 7",
        "reason": "sample string 8",
        "status": {
          "eventType": "sample string 1",
          "consciousness": "sample string 2",
          "breathing": "sample string 3",
          "bleeding": "sample string 4",
          "pain": "sample string 5"
        }
      },
      "transportDescription": "sample string 8",
      "idPriority": 1,
      "creatorPhone": "sample string 9",
      "docInHands": true,
      "docInHandsDescription": "sample string 10",
      "idTransportHandover": "sample string 11"
    },
    {
      "id": 1,
      "idOrder": 1,
      "orderNumber": "sample string 1",
      "workUnitCreator": "sample string 2",
      "idWorkUnitCreator": 1,
      "workUnitDispatcher": "sample string 3",
      "idWorkUnitDispatcher": 1,
      "workUnitTransporter": "sample string 4",
      "idWorkUnitTransporter": 1,
      "intervention": "sample string 5",
      "created": "2025-12-11T02:52:37.7562282+01:00",
      "changed": "2025-12-11T02:52:37.7562282+01:00",
      "statuses": {
        "drafted": "2025-12-11T02:52:37.7562282+01:00",
        "ordered": "2025-12-11T02:52:37.7562282+01:00",
        "received": "2025-12-11T02:52:37.7562282+01:00",
        "evaluated": "2025-12-11T02:52:37.7562282+01:00",
        "evaluateResult": true,
        "assigned": "2025-12-11T02:52:37.7562282+01:00",
        "accepted": "2025-12-11T02:52:37.7562282+01:00",
        "onRoute": "2025-12-11T02:52:37.7562282+01:00",
        "onScene": "2025-12-11T02:52:37.7562282+01:00",
        "atPatient": "2025-12-11T02:52:37.7562282+01:00",
        "returning": "2025-12-11T02:52:37.7562282+01:00",
        "atDestination": "2025-12-11T02:52:37.7562282+01:00",
        "patientHandedOver": "2025-12-11T02:52:37.7562282+01:00",
        "patientAccepted": "2025-12-11T02:52:37.7562282+01:00",
        "toBase": "2025-12-11T02:52:37.7562282+01:00",
        "available": "2025-12-11T02:52:37.7562282+01:00",
        "complete": "2025-12-11T02:52:37.7562282+01:00",
        "aborted": "2025-12-11T02:52:37.7562282+01:00",
        "abortReason": "sample string 1",
        "billed": "2025-12-11T02:52:37.7562282+01:00",
        "evaluateResultDescription": "sample string 2"
      },
      "from": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:52:37.7562282+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "to": {
        "idWorkUnit": 1,
        "institution": "sample string 1",
        "institutionDescription": "sample string 2",
        "municipality": "sample string 3",
        "town": "sample string 4",
        "street": "sample string 5",
        "houseNumber": "sample string 6",
        "description": "sample string 7",
        "latitude": 1.1,
        "longitude": 1.1,
        "time": "2025-12-11T02:52:37.7562282+01:00",
        "postcode": "sample string 8",
        "post": "sample string 9"
      },
      "patient": {
        "kZZ": "sample string 1",
        "name": "sample string 2",
        "surname": "sample string 3",
        "birthDate": "2025-12-11T02:52:37.7562282+01:00",
        "sex": "sample string 4",
        "email": "sample string 5",
        "phone": "sample string 6",
        "mobility": "sample string 7",
        "reason": "sample string 8",
        "status": {
          "eventType": "sample string 1",
          "consciousness": "sample string 2",
          "breathing": "sample string 3",
          "bleeding": "sample string 4",
          "pain": "sample string 5"
        }
      },
      "transportDescription": "sample string 8",
      "idPriority": 1,
      "creatorPhone": "sample string 9",
      "docInHands": true,
      "docInHandsDescription": "sample string 10",
      "idTransportHandover": "sample string 11"
    }
  ],
  "mesasge": "sample string 1",
  "isSuccess": true
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.