GET api/Comments/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PhotoComment
NameDescriptionTypeAdditional information
Id

integer

None.

PhotoId

integer

None.

Name

string

None.

Address

string

None.

Email

string

None.

Phone

string

None.

Comment

string

None.

Submitted

date

None.

Publish

boolean

None.

Approved

boolean

None.

Deleted

date

None.

PhotoNumber

string

None.

Response 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:37.2437527+01:00",
    "Publish": true,
    "Approved": true,
    "Deleted": "2019-12-07T13:43:37.2437527+01:00",
    "PhotoNumber": "sample string 9"
  },
  {
    "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:37.2437527+01:00",
    "Publish": true,
    "Approved": true,
    "Deleted": "2019-12-07T13:43:37.2437527+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:37.2437527+01:00","Publish":true,"Approved":true,"Deleted":"2019-12-07T13:43:37.2437527+01:00","PhotoNumber":"sample string 9"},{"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:37.2437527+01:00","Publish":true,"Approved":true,"Deleted":"2019-12-07T13:43:37.2437527+01:00","PhotoNumber":"sample string 9"}]

application/xml, text/xml

Sample:
<ArrayOfPhotoComment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Fylkesarkivet.Photo.Entities.CommentDb">
  <PhotoComment>
    <Address>sample string 4</Address>
    <Approved>true</Approved>
    <Comment>sample string 7</Comment>
    <Deleted>2019-12-07T13:43:37.2437527+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:37.2437527+01:00</Submitted>
  </PhotoComment>
  <PhotoComment>
    <Address>sample string 4</Address>
    <Approved>true</Approved>
    <Comment>sample string 7</Comment>
    <Deleted>2019-12-07T13:43:37.2437527+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:37.2437527+01:00</Submitted>
  </PhotoComment>
</ArrayOfPhotoComment>