Retrieving the Related Communities service document
Added by IBM contributorIBM | Edited by Claudia R Elbourn on July 23, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Retrieving the Related Communities service document.

To update resources made available through the Atom APIs, you must first retrieve the service document for the Related Communities under a containing Community.


Input
Method URI Description
GET /communities/recomm/atom/service Accesses a user's service document to retrieve links to a user's Forums views, which are listed as collections.
Name Type Optional Description
communityUuid
string No The uuid of the community which contains this Related Communities Widget.
Output
Content Type: application/atom+xml
Code Description
200
OK. Indicates that the request was received successfully.
Examples
To retrieve the service document for the Related Communities under a containing Community:
> GET /communities/recomm/atom/service?communityUuid=249b10c6-5210-45a5-9332-3dfc36bedba6 HTTP/1.1

	> Authorization: xxx

	> Host: enterprise.example.com:9444

	> Accept: */*


Response returned by the server
<?xml version="1.0" encoding="UTF-8"?>

	<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">

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

	uri="http://www.ibm.com/xmlns/prod/sn" version="4.0.0.0">IBM Connections -

	Related Communities</generator>

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

	<atom:title xmlns:atom="http://www.w3.org/2005/Atom" type="text">Related

	Communities Feed Collection for first one</atom:title>

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

	href="http://dev250.dyn.webahead.ibm.com:9081/communities/recomm/atom/relatedCommunities?communityUuid=249b10c6-5210-45a5-9332-3dfc36bedba6">

	<atom:title xmlns:atom="http://www.w3.org/2005/Atom" type="text">

	Related Communities of first one</atom:title>

	<accept>application/atom+xml; type=entry</accept>

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

	scheme="http://www.ibm.com/xmlns/prod/sn/collection" term="relatedCommunities"></atom:category>

	</collection>

	</workspace>

	</service>