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": "2024-12-21T15:42:35.3991865+00:00"
}

text/html

Sample:
{"Id":"sample string 1","Latitude":2.1,"Longitude":3.1,"Date":"2024-12-21T15:42:35.3991865+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>2024-12-21T15:42:35.3991865+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.