Community articleGetting a list of inappropriate content flag options in Forums
Added by IBM contributorIBM | Edited by IBM contributorLDD Webmaster on June 27, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Get a category document that lists the flags you can assign to content that you deem to be inappropriate. By flagging inappropriate content, you bring it to the attention of the site administrator.



Get a category document that lists the flags you can assign to content that you deem to be inappropriate. By flagging inappropriate content, you bring it to the attention of the site administrator.

Input


To retrieve a list of inappropriate content flag options for Forums, complete the following steps:


  1. Retrieve the Forums service document.
  2. From the service document, find the href of the My Forums feed and send a GET request to it.
  3. From the forum of interest in the My Forums feed, find the value of the href attribute of the <link> elements that have a rel attribute set to either "self" or "replies."
  4. From the returned Atom document, find the <link> element that has a rel="http://www.ibm.com/xmlns/prod/sn/issues" attribute value, and then send a GET request to the web address specified in the associated href attribute.

 

If the category document is sourced in a language other than English, specify the language using an Accept-Language parameter on the HTTP request. For example, the following request indicates that the response should be returned in Simplified Chinese:

GET https://example.com:9443/forums/atom/issuecategories

	Accept-Language=zh-cn,en-us;q=0.8,en;q=0.5,he;q=0.3


Output


An Atom category document containing the available flags that you can use to bring entries to the attention of the site administrator.

HTTP request:

> GET /forums/atom/issuecategories/atom HTTP/1.1

	> Authorization: Basic XXXXX

	> Host: enterprise.example.com:9444

	> Accept: */*


HTTP response:

HTTP/1.1 200 OK


The following content is returned by the server:

<categories>

	<atom:category term="002" label="Human Resources issue"/>

	<atom:category term="001" label="Legal issue"/>

	</categories>


Sample response when the Accept-Language=zh-cn,en-us;q=0.8,en;q=0.5,he;q=0.3 parameter is included on the request::

HTTP 200 OK

	<?xml version="1.0" encoding="UTF-8"?>

	<categories

	xmlns="http://www.w3.org/2007/app"

	xmlns:atom="http://www.w3.org/2005/Atom">

	<generator

	xmlns="http://www.w3.org/2005/Atom"

	uri="http://www.ibm.com/xmlns/prod/sn"

	version="3.5.0.0">

	IBM Connections

	</generator>

	<atom:category term="001" label="法律条款"></atom:category>

	<atom:category term="002" label="人力资源"></atom:category>

	</categories>


 

Method URI Description
GET Value of the href attribute of the <link> element that has a rel="http://www.ibm.com/xmlns/prod/sn/issues" attribute value Returns a category document containing the available flags that you can associate with entries in forums to bring them to the attention of the administrator.