POST api/WorkingOrders/Upload
Request Information
URI Parameters
None.
Body Parameters
Cyberlogic.eTourism.Domain.ViewModels.Transfers.WorkingOrderGroupUploadName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
StationId | integer |
None. |
|
WorkingOrders | Collection of Cyberlogic.eTourism.Domain.Models.Transfers.DTO.WorkingOrderDTO |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "StationId": 2, "WorkingOrders": [ { "Id": 1, "Tag": "sample string 2", "FlightName": "sample string 3", "FlightTime": "sample string 4", "FlightId": 5, "BusNumber": "sample string 6", "Hotels": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] }, { "Id": 1, "Tag": "sample string 2", "FlightName": "sample string 3", "FlightTime": "sample string 4", "FlightId": 5, "BusNumber": "sample string 6", "Hotels": [ { "Id": 1, "Name": "sample string 2" }, { "Id": 1, "Name": "sample string 2" } ] } ] }
text/html
Sample:
{"Name":"sample string 1","StationId":2,"WorkingOrders":[{"Id":1,"Tag":"sample string 2","FlightName":"sample string 3","FlightTime":"sample string 4","FlightId":5,"BusNumber":"sample string 6","Hotels":[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]},{"Id":1,"Tag":"sample string 2","FlightName":"sample string 3","FlightTime":"sample string 4","FlightId":5,"BusNumber":"sample string 6","Hotels":[{"Id":1,"Name":"sample string 2"},{"Id":1,"Name":"sample string 2"}]}]}
application/xml, text/xml
Sample:
<WorkingOrderGroupUpload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Transfers"> <Name>sample string 1</Name> <StationId>2</StationId> <WorkingOrders xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.Models.Transfers.DTO"> <d2p1:WorkingOrderDTO> <d2p1:BusNumber>sample string 6</d2p1:BusNumber> <d2p1:FlightId>5</d2p1:FlightId> <d2p1:FlightName>sample string 3</d2p1:FlightName> <d2p1:FlightTime>sample string 4</d2p1:FlightTime> <d2p1:Hotels> <d2p1:WorkingHotelDTO> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkingHotelDTO> <d2p1:WorkingHotelDTO> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkingHotelDTO> </d2p1:Hotels> <d2p1:Id>1</d2p1:Id> <d2p1:Tag>sample string 2</d2p1:Tag> </d2p1:WorkingOrderDTO> <d2p1:WorkingOrderDTO> <d2p1:BusNumber>sample string 6</d2p1:BusNumber> <d2p1:FlightId>5</d2p1:FlightId> <d2p1:FlightName>sample string 3</d2p1:FlightName> <d2p1:FlightTime>sample string 4</d2p1:FlightTime> <d2p1:Hotels> <d2p1:WorkingHotelDTO> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkingHotelDTO> <d2p1:WorkingHotelDTO> <d2p1:Id>1</d2p1:Id> <d2p1:Name>sample string 2</d2p1:Name> </d2p1:WorkingHotelDTO> </d2p1:Hotels> <d2p1:Id>1</d2p1:Id> <d2p1:Tag>sample string 2</d2p1:Tag> </d2p1:WorkingOrderDTO> </WorkingOrders> </WorkingOrderGroupUpload>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |