POST api/ListingView

Request Information

URI Parameters

None.

Body Parameters

ListingViewModel
NameDescriptionTypeAdditional information
Id

string

None.

Latitude

decimal number

Required

Longitude

decimal number

Required

Date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Date": "2021-07-31T06:55:58.000484+00:00"
}

text/html

Sample:
{"Id":"sample string 1","Latitude":2.1,"Longitude":3.1,"Date":"2021-07-31T06:55:58.000484+00:00"}

application/xml, text/xml

Sample:
<ListingViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services.Listing">
  <Date>2021-07-31T06:55:58.000484+00:00</Date>
  <Id>sample string 1</Id>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
</ListingViewModel>

application/x-www-form-urlencoded

Sample:

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.