POST api/Comments
Request Information
URI Parameters
None.
Body Parameters
PhotoCommentName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PhotoId | integer |
None. |
|
Name | string |
None. |
|
Address | string |
None. |
|
string |
None. |
||
Phone | string |
None. |
|
Comment | string |
None. |
|
Submitted | date |
None. |
|
Publish | boolean |
None. |
|
Approved | boolean |
None. |
|
Deleted | date |
None. |
|
PhotoNumber | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "PhotoId": 2, "Name": "sample string 3", "Address": "sample string 4", "Email": "sample string 5", "Phone": "sample string 6", "Comment": "sample string 7", "Submitted": "2019-12-07T13:43:46.3431734+01:00", "Publish": true, "Approved": true, "Deleted": "2019-12-07T13:43:46.3431734+01:00", "PhotoNumber": "sample string 9" }
text/html
Sample:
{"Id":1,"PhotoId":2,"Name":"sample string 3","Address":"sample string 4","Email":"sample string 5","Phone":"sample string 6","Comment":"sample string 7","Submitted":"2019-12-07T13:43:46.3431734+01:00","Publish":true,"Approved":true,"Deleted":"2019-12-07T13:43:46.3431734+01:00","PhotoNumber":"sample string 9"}
application/xml, text/xml
Sample:
<PhotoComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fylkesarkivet.Photo.Entities.CommentDb"> <Address>sample string 4</Address> <Approved>true</Approved> <Comment>sample string 7</Comment> <Deleted>2019-12-07T13:43:46.3431734+01:00</Deleted> <Email>sample string 5</Email> <Id>1</Id> <Name>sample string 3</Name> <Phone>sample string 6</Phone> <PhotoId>2</PhotoId> <PhotoNumber>sample string 9</PhotoNumber> <Publish>true</Publish> <Submitted>2019-12-07T13:43:46.3431734+01:00</Submitted> </PhotoComment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |