GET /api/boards/{BoardID}/board
Returns Board items for the specified user-defined board, in the form of an RSS feed.
Note: There are two operations with essentially the same signature that return the same data in different formats, depending on the Accept header you use. GET /api/boards/{BoardID}/board (this operation) with JSON or XML headers returns an RSS feed, and GET /api/boards/{BoardID}/board with vendor-specific JSON or XML headers returns the information in the form of a JSON or XML object.
Authorization Roles/Permissions: Must be logged in and have permission to view the requested resources. If the user is logged in but doesn't have permission to view certain resources, the operation works, but limited (or empty) results are returned. For more information about how authorization and visibility work for Board operations, see Boards in the Community Manager developer portal.
This topic includes the following sections:
HTTP Method
GET
URL
https://{hostname}/api/boards/{BoardID}/board
Sample Request
The example below shows a request for the board items for the Support Board, with no additional parameters.
Sample Request URL
https://{hostname}/api/boards/supportboard.acmepaymentscorp/board
Sample request headers
accept: application/json
Sample request body
Not applicable.
Request Headers
For general information on request header values, refer to HTTP Request Headers.
Header | Description |
---|---|
Accept | application/xml, application/json, application/rss+xml |
Cookie | AtmoAuthToken_{fedmemberid}={cookie value, which usually starts with TokenID}—The platform cookie. This is the Akana API Platform authorization token, and must be sent with every API request that requires login. For more information and an example, see Session cookies. |
X-Csrf-Token_{fedmemberID} | The CSRF prevention header; may or may not be required, depending on platform settings. See CSRF Prevention on the Platform. By default, the CSRF header is not required for GET operations and is required for all others, with a few exceptions relating to user login. |
Request Parameters
Parameter | Parm Type | Data Type | Required | Description |
---|---|---|---|---|
BoardID | Path | string | Required | The unique ID for a specific user-defined board. |
ItemType | Query | string[ ] | Optional |
A filtering parameter, specifying one or more board item (forum entry) types to be returned, such as an alert, discussion, or ticket. For valid values, see Board Item Types. For the Support board, the only valid value is Discussion. For user-defined boards, it depends on the custom implementation. |
ItemID | Query | string | Optional |
The unique ID for a specific forum entry. If specified, results are limited to information relating to that item ID. If not specified, no filter is applied. |
Tag | Query | string | Optional |
A user-defined tag. If specified, results are limited to board items relating to that tag. If not specified, no filter is applied. |
IncludeComments | Query | boolean | Optional | Indicates whether comments should be included in the information returned. Default: true. If set to false, comments are excluded. |
NumberOfComments | Query | integer | Optional | The number of comments to be returned (if IncludeComments is not set to false). Default value: 2. |
IncludeActions | Query | boolean | Optional | Indicates whether workflow actions currently valid for the resource should be included in the results. Default: true. For valid workflow actions, see Workflow Actions. |
IncludeCommentActions | Query | boolean | Optional | Indicates whether workflow actions currently valid for a comment on the board should be included in the results. Default: false. For valid workflow actions for comments, see Comments: Valid Workflow Actions. |
start | Query | integer | Optional | An index number indicating the starting point for the results to be returned. If not specified, results start at position 0, the first result. |
count | Query | integer | Optional | The number of results to be returned, from the specified starting point. If not specified, all matching results are returned. |
SortBy | Query | string | Optional | An optional parameter allowing users to sort results by a specific value; for example, com.soa.sort.order.updated sorts with the most updated entries first. For valid values, see Sort By Values. If not specified, items are returned in the sort order of DescendingDate, which means that the most recent items are first. |
RetrievingUserID | Query | string | Optional | The unique UserID of the user performing a specific action. |
IncludeSelfAuthored | Query | string | Optional |
Indicates whether resources authored by the requestor should be included. Default: true. |
PublishedState | Query | string | Optional |
Indicates that only resources in a specific state should be returned. Valid values: published or unpublished. Default: published, indicating that only resources that have been published are returned. |
Response
If successful, this operation returns HTTP status code 200, with the board items for the specified board.
Sample Response
The sample response below shows successful completion of this operation.
Sample response headers: application/json
Status Code: 200 OK Content-Type: application/json Expires: Fri, 20 Feb 2015 15:38:17 GMT
Sample response body: application/json
{ "channel" : { "title" : "Board", "startIndex" : 0, "itemsPerPage" : 0, "item" : [ { "title" : "Extended Support hours", "description" : "We are considering extending Support hours. Comments welcome.", "category" : [ { "value" : "DISCUSSION", "domain" : "uddi:soa.com:resourcetype" }, { "value" : "support", "domain" : "uddi:soa.com:tag" }, { "value" : "hours", "domain" : "uddi:soa.com:tag" }, { "value" : "true", "domain" : "uddi:soa.com:archivable" }, { "value" : "true", "domain" : "uddi:soa.com:published" }, { "value" : "com.soa.board.item.open", "domain" : "uddi:soa.com:state" }, { "value" : "com.soa.discussion.type.comment", "domain" : "uddi:soa.com:discussiontype" }, { "value" : "Published", "domain" : "uddi:soa.com:wfstate" } ], "guid" : { "value" : "discussion11572.acmepaymentscorp" }, "pubDate" : "2015-02-20T20:34:17.000Z", "AuthoringUser" : { "ID" : "b2972b42-7fdc-426d-84cd-344a1e98e010.acmepaymentscorp", "Name" : "adminacmepaymentscorp", "Image" : { "Url" : "http://{hostname}/api/users/b2972b42-7fdc-426d-84cd-344a1e98e010.acmepaymentscorp/avatar", "Title" : "adminacmepaymentscorp", "Link" : "#/users/b2972b42-7fdc-426d-84cd-344a1e98e010.acmepaymentscorp/details" } }, "Image" : { "Url" : "http://{hostname}/api/users/b2972b42-7fdc-426d-84cd-344a1e98e010.acmepaymentscorp/avatar", "Link" : "#/user/b2972b42-7fdc-426d-84cd-344a1e98e010.acmepaymentscorp/details" }, "CreatedDate" : "2015-02-20T20:17:51.000Z", "Actions" : { "Action" : [ { "value" : "discussion.action.unpublish", "label" : "discussion.action.unpublish" }, { "value" : "discussion.action.delete", "label" : "discussion.action.delete" } ] }, "Marks" : { "Count" : 1, "IsMarkedByReader" : false }, "CommentsPreview" : { "Count" : 1, "Comment" : [ { "CommentID" : "5fe3540c-1e88-4bdb-b170-6d94dc0e327c.acmepaymentscorp", "CommentSubjectID" : "discussion11572.acmepaymentscorp", "Content" : "Saturday 1-5pm PST would be great for us.", "Created" : "2015-02-20T20:34:17Z", "Marks" : 0, "IsMarked" : false, "UserID" : "2f280dbc-4d60-4ecc-bf67-6908d0f89ad3.acmepaymentscorp", "UserName" : "JonathanSwift", "AvatarURL" : "http://{hostname}/api/users/2f280dbc-4d60-4ecc-bf67-6908d0f89ad3.acmepaymentscorp/avatar", "Published" : false, "WorkflowState" : "Pending" }, { "CommentID" : "3a7e2509-0474-4938-8bcd-2aee1d9ecae1.acmepaymentscorp", "CommentSubjectID" : "discussion11572.acmepaymentscorp", "Content" : "Awesome! extending to 9pm PST would be great for us since we are in Hawaii.", "Created" : "2015-02-20T20:23:24Z", "Marks" : 1, "IsMarked" : false, "UserID" : "434d706d-b32e-49a2-bfe7-2bf23e032347.acmepaymentscorp", "UserName" : "JaneMead", "AvatarURL" : "http://{hostname}/api/users/434d706d-b32e-49a2-bfe7-2bf23e032347.acmepaymentscorp/avatar", "Published" : true } ] }, "EntityReference" : { "Title" : "Support", "Guid" : "supportboard.acmepaymentscorp", "Category" : [ { "value" : "board", "domain" : "uddi:soa.com:resourcetype" } ] } } ] }, "version" : "1.0" }
Response Headers
For general information on response header values, refer to HTTP Response Headers.
Header | Description |
---|---|
Content-Type | application/xml, application/json, application/rss+xml |
Response Body
The response body is in the form of an RSS channel, and includes the items listed below. The RSS version is 1.0. The title of the RSS Channel is Board, and the channel includes paging values: StartIndex, TotalResults, and ItemsPerPage. Each item in the RSS channel represents a Board item, and includes the information below.
Name | Description |
---|---|
title | The text title of the Board item. |
description | Descriptive text for the Board item. |
category[ ] |
An array of sets of two name/value pairs, each including Value and Domain, with a value for each. For example: "value" : "false", "domain" : "uddi:soa.com:archivable" The example above indicates that the Board item is not archivable. |
GUID | GUID for the Board item. |
pubdate | The date/timestamp when the information was generated. |
AuthoringUser |
Information about the user who authored the Board item, including:
|
Image | Information about the image for the resource that the Board item is associated with, including URL and link. |
CreatedDate | The date/timestamp when the information was generated. |
Actions |
An array of name/value pair sets containing information about one or more action events that are valid for the current user to perform on the resource. Each includes value and label, and both contain the name of the valid action. For example: "value" : "discussion.action.unpublish", "label" : "discussion.action.unpublish" The example above indicates that Unpublish is a valid action for the Board item. For information on valid workflow actions for different types of resources, see Workflow Actions Note: if the current user does not have authority to perform the actions, even though they are valid for the object, they are not returned. |
Marks | Information about marks on the Board item, including a numeric count and a boolean value, IsMarkedByReader, indicating whether the current user (if a user is logged in) marked the Board item. |
CommentsPreview | Information about comments on the Board item, including a numeric count and information about the specific comments, if applicable. |
EntityReference |
An array of one or more entity references for the Board item. Each includes:
|
Error Codes/Messages
If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.
Item | Value |
---|---|
500 | An error occurred processing the call. |
More information about Akana API Platform API error messages.