POST api/landmarks
Insert a new Landmark description to database.
Request Information
URI Parameters
None.
Body Parameters
The new Landmark's name.
Cyberlogic.eTourism.Domain.ViewModels.Landmark.LandmarkCreateViewModelName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1" }
text/html
Sample:
{"Name":"sample string 1"}
application/xml, text/xml
Sample:
<LandmarkCreateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Landmark"> <Name>sample string 1</Name> </LandmarkCreateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A Landmark object.
Cyberlogic.eTourism.Domain.Models.Landmark.LandmarkName | Description | Type | Additional information |
---|---|---|---|
Id | MongoDB.Bson.ObjectId |
None. |
|
Name | string |
None. |
|
Categories | Collection of string |
None. |
|
Description | Cyberlogic.eTourism.Domain.Models.Landmark.LandmarkDescription |
None. |
|
City | Cyberlogic.eTourism.Domain.Models.Location.City |
None. |
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.