POST users/location

Request Information

URI Parameters

None.

Body Parameters

LocationListModel
NameDescriptionTypeAdditional information
user

string

None.

locations

Collection of LocationsModel

None.

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 1",
  "locations": [
    {
      "location": {
        "lat": 1.0,
        "lng": 2.0
      },
      "date": "sample string 1"
    },
    {
      "location": {
        "lat": 1.0,
        "lng": 2.0
      },
      "date": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<LocationListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VrPark.WebAPI.Models">
  <locations>
    <LocationsModel>
      <date>sample string 1</date>
      <location>
        <lat>1</lat>
        <lng>2</lng>
      </location>
    </LocationsModel>
    <LocationsModel>
      <date>sample string 1</date>
      <location>
        <lat>1</lat>
        <lng>2</lng>
      </location>
    </LocationsModel>
  </locations>
  <user>sample string 1</user>
</LocationListModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.