POST api/CountryTravelPossibilities
Request Information
URI Parameters
None.
Body Parameters
CountryTravelPossibilityBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CountrySourceId | string |
Required String length: inclusive between 0 and 25 |
|
| CountryDestinationId | string |
Required String length: inclusive between 0 and 25 |
Request Formats
application/json, text/json
Sample:
{
"CountrySourceId": "sample string 1",
"CountryDestinationId": "sample string 2"
}
application/xml, text/xml
Sample:
<CountryTravelPossibilityBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <CountryDestinationId>sample string 2</CountryDestinationId> <CountrySourceId>sample string 1</CountrySourceId> </CountryTravelPossibilityBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CountryTravelPossibilityViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| CountrySource | LocationAddress |
Required |
|
| CountryDestination | LocationAddress |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"CountrySource": {
"ImageUrl": "sample string 1",
"Id": "sample string 2",
"Name": "sample string 3"
},
"CountryDestination": {
"ImageUrl": "sample string 1",
"Id": "sample string 2",
"Name": "sample string 3"
}
}
application/xml, text/xml
Sample:
<CountryTravelPossibilityViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<CountryDestination>
<Id>sample string 2</Id>
<Name>sample string 3</Name>
<ImageUrl>sample string 1</ImageUrl>
</CountryDestination>
<CountrySource>
<Id>sample string 2</Id>
<Name>sample string 3</Name>
<ImageUrl>sample string 1</ImageUrl>
</CountrySource>
<Id>1</Id>
</CountryTravelPossibilityViewModel>