GET api/NotAllowedCountryForCompanies/Get/All?fromNo={fromNo}&taking={taking}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
fromNo | integer |
Required |
|
taking | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of ComplexTourCountryByCompanyViewModelName | Description | Type | Additional information |
---|---|---|---|
CompanyCode | string |
Required String length: inclusive between 0 and 10 |
|
CompanyName | string |
Required String length: inclusive between 0 and 10 |
|
Countries | Collection of TourCountryForCompanyViewModel |
None. |
Response Formats
application/json, text/json
Sample:
[ { "CompanyCode": "sample string 1", "CompanyName": "sample string 2", "Countries": [ { "Country": { "ImageUrl": "sample string 1", "Id": "sample string 2", "Name": "sample string 3" }, "CompanyCode": "sample string 1", "IsAllowed": true }, { "Country": { "ImageUrl": "sample string 1", "Id": "sample string 2", "Name": "sample string 3" }, "CompanyCode": "sample string 1", "IsAllowed": true } ] }, { "CompanyCode": "sample string 1", "CompanyName": "sample string 2", "Countries": [ { "Country": { "ImageUrl": "sample string 1", "Id": "sample string 2", "Name": "sample string 3" }, "CompanyCode": "sample string 1", "IsAllowed": true }, { "Country": { "ImageUrl": "sample string 1", "Id": "sample string 2", "Name": "sample string 3" }, "CompanyCode": "sample string 1", "IsAllowed": true } ] } ]
application/xml, text/xml
Sample:
<ArrayOfComplexTourCountryByCompanyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <ComplexTourCountryByCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <CompanyName>sample string 2</CompanyName> <Countries> <TourCountryForCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <Country> <Id>sample string 2</Id> <Name>sample string 3</Name> <ImageUrl>sample string 1</ImageUrl> </Country> <IsAllowed>true</IsAllowed> </TourCountryForCompanyViewModel> <TourCountryForCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <Country> <Id>sample string 2</Id> <Name>sample string 3</Name> <ImageUrl>sample string 1</ImageUrl> </Country> <IsAllowed>true</IsAllowed> </TourCountryForCompanyViewModel> </Countries> </ComplexTourCountryByCompanyViewModel> <ComplexTourCountryByCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <CompanyName>sample string 2</CompanyName> <Countries> <TourCountryForCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <Country> <Id>sample string 2</Id> <Name>sample string 3</Name> <ImageUrl>sample string 1</ImageUrl> </Country> <IsAllowed>true</IsAllowed> </TourCountryForCompanyViewModel> <TourCountryForCompanyViewModel> <CompanyCode>sample string 1</CompanyCode> <Country> <Id>sample string 2</Id> <Name>sample string 3</Name> <ImageUrl>sample string 1</ImageUrl> </Country> <IsAllowed>true</IsAllowed> </TourCountryForCompanyViewModel> </Countries> </ComplexTourCountryByCompanyViewModel> </ArrayOfComplexTourCountryByCompanyViewModel>