GET example/api/linkinfo/getbycontent/{contentId}
https://app.bwz.se/bedrock/example/api/linkinfo/getbycontent/{contentId}
Gets all LinkInfoModels for a desired Content.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
contentId |
The id of the Content the LinkInfos belong to. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
An array of LinkInfoModels.
Collection of LinkInfoModelName | Description | Type | Additional information |
---|---|---|---|
LinkInfoId |
Gets or sets the link information identifier. |
integer |
None. |
ContentId |
Gets or sets the content identifier. |
integer |
None. |
LinkUrl |
Gets or sets the link URL. |
string |
None. |
LinkName |
Gets or sets the name of the link. |
string |
None. |
LinkValue |
Gets or sets the link value. |
integer |
None. |
LinkCategoryId |
Gets or sets the link category identifier. |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[ { "LinkInfoId": 1, "ContentId": 2, "LinkUrl": "sample string 3", "LinkName": "sample string 4", "LinkValue": 5, "LinkCategoryId": 1 }, { "LinkInfoId": 1, "ContentId": 2, "LinkUrl": "sample string 3", "LinkName": "sample string 4", "LinkValue": 5, "LinkCategoryId": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfLinkInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models"> <LinkInfoModel> <ContentId>2</ContentId> <LinkCategoryId>1</LinkCategoryId> <LinkInfoId>1</LinkInfoId> <LinkName>sample string 4</LinkName> <LinkUrl>sample string 3</LinkUrl> <LinkValue>5</LinkValue> </LinkInfoModel> <LinkInfoModel> <ContentId>2</ContentId> <LinkCategoryId>1</LinkCategoryId> <LinkInfoId>1</LinkInfoId> <LinkName>sample string 4</LinkName> <LinkUrl>sample string 3</LinkUrl> <LinkValue>5</LinkValue> </LinkInfoModel> </ArrayOfLinkInfoModel>