POST api/TotalAyushCare/GetCityList

Documentation for 'GetCityList'.

Request Information

Parameters

NameDescriptionAdditional information
request
Documentation for 'request'.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Credentials": {
    "Username": "sample string 1",
    "Password": "sample string 2",
    "ClientName": "sample string 3"
  },
  "Cities": {
    "ID": "sample string 1",
    "State": "sample string 2",
    "CityName": "sample string 3",
    "Action": "sample string 4",
    "Source": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<CityRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <Cities>
    <Action>sample string 4</Action>
    <CityName>sample string 3</CityName>
    <ID>sample string 1</ID>
    <Source>sample string 5</Source>
    <State>sample string 2</State>
  </Cities>
  <Credentials>
    <ClientName>sample string 3</ClientName>
    <Password>sample string 2</Password>
    <Username>sample string 1</Username>
  </Credentials>
</CityRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedMediaTypeFormatterTracer' to write type 'CityRequest'.

Response Information

Response body formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "errors": [
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    },
    {
      "code": "sample string 1",
      "description": "sample string 2"
    }
  ],
  "result": "sample string 2",
  "CityList": [
    {
      "ID": "sample string 1",
      "State": "sample string 2",
      "CityName": "sample string 3",
      "Action": "sample string 4",
      "Source": "sample string 5"
    },
    {
      "ID": "sample string 1",
      "State": "sample string 2",
      "CityName": "sample string 3",
      "Action": "sample string 4",
      "Source": "sample string 5"
    },
    {
      "ID": "sample string 1",
      "State": "sample string 2",
      "CityName": "sample string 3",
      "Action": "sample string 4",
      "Source": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<CityResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TotalAyushCare.Codes">
  <CityList>
    <City>
      <Action>sample string 4</Action>
      <CityName>sample string 3</CityName>
      <ID>sample string 1</ID>
      <Source>sample string 5</Source>
      <State>sample string 2</State>
    </City>
    <City>
      <Action>sample string 4</Action>
      <CityName>sample string 3</CityName>
      <ID>sample string 1</ID>
      <Source>sample string 5</Source>
      <State>sample string 2</State>
    </City>
    <City>
      <Action>sample string 4</Action>
      <CityName>sample string 3</CityName>
      <ID>sample string 1</ID>
      <Source>sample string 5</Source>
      <State>sample string 2</State>
    </City>
  </CityList>
  <errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
    <errors>
      <code>sample string 1</code>
      <description>sample string 2</description>
    </errors>
  </errors>
  <message>sample string 1</message>
  <result>sample string 2</result>
</CityResponse>