GET api/NotAllowedCountryForCompanies/Get/All

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of TourCountryByCompanyViewModel
NameDescriptionTypeAdditional information
CompanyCode

string

Required

String length: inclusive between 0 and 10

CompanyName

string

Required

String length: inclusive between 0 and 10

NotAllowedCountries

Collection of TourCountryForCompanyViewModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "CompanyCode": "sample string 1",
    "CompanyName": "sample string 2",
    "NotAllowedCountries": [
      {
        "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",
    "NotAllowedCountries": [
      {
        "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:
<ArrayOfTourCountryByCompanyViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
  <TourCountryByCompanyViewModel>
    <CompanyCode>sample string 1</CompanyCode>
    <CompanyName>sample string 2</CompanyName>
    <NotAllowedCountries>
      <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>
    </NotAllowedCountries>
  </TourCountryByCompanyViewModel>
  <TourCountryByCompanyViewModel>
    <CompanyCode>sample string 1</CompanyCode>
    <CompanyName>sample string 2</CompanyName>
    <NotAllowedCountries>
      <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>
    </NotAllowedCountries>
  </TourCountryByCompanyViewModel>
</ArrayOfTourCountryByCompanyViewModel>