RHP_API

<back to all web services

GetArticle

The following routes are available for this service:
GET/Article/{ID}
GetArticle Parameters:
NameParameterData TypeRequiredDescription
IDpathintNo
PreviewquerystringNo
ArticleDetail Parameters:
NameParameterData TypeRequiredDescription
BodyformstringNo
KeywordsformstringNo
ReferenceTextformstringNo
ReferenceUrlformstringNo
TagsformstringNo
CategoriesValuesformList<LookupItem>No
CompetitionformCompetitionNo
CommentsDisabledformboolNo
ArticleListItem Parameters:
NameParameterData TypeRequiredDescription
ArticleIDformintNo
TitleformstringNo
ShortTitleformstringNo
SummaryformstringNo
ImageUrlformstringNo
CategoriesformintNo
DatePublishedformDateTimeNo
AuthorformArticleAuthorNo
SEOUrlformstringNo
CommunityAction Parameters:
NameParameterData TypeRequiredDescription
CommentCountformintNo
CommunityLikeAction Parameters:
NameParameterData TypeRequiredDescription
IsLikedformboolNo
LikeCountformintNo
ArticleAuthor Parameters:
NameParameterData TypeRequiredDescription
ArticleAuthorIDformintNo
NameformstringNo
ImageUrlformstringNo
WidthformintNo
HeightformintNo
DescriptionformstringNo
FacebookLinkformstringNo
TwitterLinkformstringNo
InstagramLinkformstringNo
YouTubeLinkformstringNo
ArticleCountformintNo
LookupItem Parameters:
NameParameterData TypeRequiredDescription
ItemIDformintNo
ItemNameformstringNo
ListIDformintNo
Competition Parameters:
NameParameterData TypeRequiredDescription
CompetitionIDformintNo
PrizeformstringNoPrize description
QuestionBlurbformstringNoQuestion Title
QuestionformstringNoQuestion Text
TermsConditionformstringNoTerms and Conditions text
StartDateformDateTimeNoCometition Start Date
EndDateformDateTimeNoCometition End Date
IsNameRequiredformboolNoDetermines if the Name field should be displayed
IsEmailRequiredformboolNoDetermines if the Email field should be displayed
IsPhoneRequiredformboolNoDetermines if the Phone field should be displayed
IsAddressRequiredformboolNoDetermines if the Address field should be displayed

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

HTTP + JSV

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

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

{
	Body: String,
	Keywords: String,
	ReferenceText: String,
	ReferenceUrl: String,
	Tags: String,
	CategoriesValues: 
	[
		{
			ItemID: 0,
			ItemName: String,
			ListID: 0
		}
	],
	Competition: 
	{
		CompetitionID: 0,
		Prize: String,
		QuestionBlurb: String,
		Question: String,
		TermsCondition: String,
		StartDate: 0001-01-01,
		EndDate: 0001-01-01,
		IsNameRequired: False,
		IsEmailRequired: False,
		IsPhoneRequired: False,
		IsAddressRequired: False
	},
	CommentsDisabled: False,
	ArticleID: 0,
	Title: String,
	ShortTitle: String,
	Summary: String,
	ImageUrl: String,
	Categories: 0,
	DatePublished: 0001-01-01,
	Author: 
	{
		ArticleAuthorID: 0,
		Name: String,
		ImageUrl: String,
		Width: 0,
		Height: 0,
		Description: String,
		FacebookLink: String,
		TwitterLink: String,
		InstagramLink: String,
		YouTubeLink: String,
		ArticleCount: 0
	},
	SEOUrl: String,
	CommentCount: 0,
	IsLiked: False,
	LikeCount: 0
}