POST admin/cities

Request Information

URI Parameters

None.

Body Parameters

CityPOST
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

UserUid

string

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "description": "sample string 2",
  "latitude": 3.1,
  "longitude": 4.1,
  "userUid": "sample string 5"
}

application/xml, text/xml

Sample:
<CityPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
  <Description>sample string 2</Description>
  <Latitude>3.1</Latitude>
  <Longitude>4.1</Longitude>
  <Name>sample string 1</Name>
  <UserUid>sample string 5</UserUid>
</CityPOST>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CityGET
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Description

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Status

Status

None.

Modified

date

None.

ModifiedBy

User

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "description": "sample string 3",
  "latitude": 4.1,
  "longitude": 5.1,
  "status": {
    "id": 1,
    "name": "sample string 2"
  },
  "modified": "2024-11-20T21:07:38.9459728+00:00",
  "modifiedBy": {
    "id": 1,
    "username": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<CityGET xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Admin">
  <Description>sample string 3</Description>
  <Id>1</Id>
  <Latitude>4.1</Latitude>
  <Longitude>5.1</Longitude>
  <Modified>2024-11-20T21:07:38.9459728+00:00</Modified>
  <ModifiedBy>
    <Id>1</Id>
    <Username>sample string 2</Username>
  </ModifiedBy>
  <Name>sample string 2</Name>
  <Status>
    <Id>1</Id>
    <Name>sample string 2</Name>
  </Status>
</CityGET>