GET api/content/{slug}
This method will retrieve content of a specific site page identified by the slug used for loading it.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
slug |
Slug |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Instance of
PtdContentPageName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
PageName | string |
None. |
|
Slug | string |
None. |
|
Title | string |
None. |
|
Content | string |
None. |
|
LastModifiedDate | string |
None. |
|
PtdContentPageTypeId | integer |
None. |
|
PtdContentPageType | PtdContentPageType |
None. |
|
CustomContent | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "pageName": "sample string 2", "slug": "sample string 3", "title": "sample string 4", "content": "sample string 5", "lastModifiedDate": "sample string 6", "ptdContentPageTypeId": 7, "ptdContentPageType": { "id": 1, "type": "sample string 2", "description": "sample string 3" }, "customContent": "sample string 8" }
text/html
Sample:
{"id":1,"pageName":"sample string 2","slug":"sample string 3","title":"sample string 4","content":"sample string 5","lastModifiedDate":"sample string 6","ptdContentPageTypeId":7,"ptdContentPageType":{"id":1,"type":"sample string 2","description":"sample string 3"},"customContent":"sample string 8"}
application/xml, text/xml
Sample:
<PtdContentPage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities"> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id> <Content>sample string 5</Content> <CustomContent>sample string 8</CustomContent> <LastModifiedDate>sample string 6</LastModifiedDate> <PageName>sample string 2</PageName> <PtdContentPageType xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.ValueTypes"> <Id xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.Entities.Core">1</Id> <d2p1:Description>sample string 3</d2p1:Description> <d2p1:Type>sample string 2</d2p1:Type> </PtdContentPageType> <PtdContentPageTypeId>7</PtdContentPageTypeId> <Slug>sample string 3</Slug> <Title>sample string 4</Title> </PtdContentPage>