RHP_API

<back to all web services

GetQandAItem

The following routes are available for this service:
GET/QandA/{ID}
GetQandAItem Parameters:
NameParameterData TypeRequiredDescription
IDpathintNo
Pagination Parameters:
NameParameterData TypeRequiredDescription
SizeformintNo
PageformintNo
QandAItem Parameters:
NameParameterData TypeRequiredDescription
AnswerformstringNo
QandAListItem Parameters:
NameParameterData TypeRequiredDescription
IDformintNo
TitleformstringNo
QuestionformstringNo
CategoriesValueformintNo
CategoriesformList<LookupItem>No
DateAnsweredformDateTimeNo
CommunityAction Parameters:
NameParameterData TypeRequiredDescription
CommentCountformintNo
CommunityLikeAction Parameters:
NameParameterData TypeRequiredDescription
IsLikedformboolNo
LikeCountformintNo
LookupItem Parameters:
NameParameterData TypeRequiredDescription
ItemIDformintNo
ItemNameformstringNo
ListIDformintNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /QandA/{ID} HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Answer":"String","ID":0,"Title":"String","Question":"String","CategoriesValue":0,"Categories":[{"ItemID":0,"ItemName":"String","ListID":0}],"DateAnswered":"\/Date(-62135596800000-0000)\/","CommentCount":0,"IsLiked":false,"LikeCount":0}