GET City/OData/{userGuid}

Provides some of OData Features. Refer to following link for usage.

فراهم آوری برخی از امکانات موجود در OData. برای استفاده به لینک زیر رجوع شود


https://docs.microsoft.com/en-us/aspnet/web-api/overview/odata-support-in-aspnet-web-api/supporting-odata-query-options

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userGuid

GUID of the User

شناسه GUID کاربر

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of CityVm
NameDescriptionTypeAdditional information
Code

Code of the City

کد شهر

integer

None.

Name

Persian name of the City

نام فارسی شهر

string

None.

NameEn

English name of the City

نام انگلیسی شهر

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Code": 1,
    "Name": "sample string 2",
    "NameEn": "sample string 3"
  },
  {
    "Code": 1,
    "Name": "sample string 2",
    "NameEn": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCityVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlaedinApi.Models">
  <CityVm>
    <Code>1</Code>
    <Name>sample string 2</Name>
    <NameEn>sample string 3</NameEn>
  </CityVm>
  <CityVm>
    <Code>1</Code>
    <Name>sample string 2</Name>
    <NameEn>sample string 3</NameEn>
  </CityVm>
</ArrayOfCityVm>