r2 - 09 Jul 2007 - 08:09:34 - BrianMoseleyYou are here: OSAF >  Projects Web  >  CosmoHome > CosmoDevelopmentHome > CosmoFeedServiceSpec > CosmoFeedEntryPoint

Cosmo Feed Service: Entry Point

The URIs used to access the Atom collections exposing a user's collections and account data are listed in an APP service document. The URI for this document follows the template /atom/user/{username}. The URI can also be found in the CMP user service document as the User URI with title atom.

All URIs in the service document may be specified relative to the document's xml:base URI.

Workspaces

The service document contains two workspaces, one for content collections and one for account data.

Home Workspace

The atom:title of this workspace is home. It includes a collection for each of the collections published into the user's home collection (excluding sub-collections). The atom:title of a collection is the display name for the corresponding content collection. The collection does not contain an accept, indicating that only Atom entries representing note items can be created or updated within that Atom collection; direct media creation and update are not allowed.

Account Workspace

The atom:title of this workspace is account. It includes the following collection elements:

No accept is specified, indicating that media creation and update are not allowed.

Response Status Codes

  • 200 : Success
  • 500 : Unknown server error generating the service document

Examples

<<< REQUEST >>>
GET /atom/user/bcm HTTP/1.1
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

<<< RESPONSE >>>
HTTP/1.1 200 OK
Content-Type: application/atomsvc+xml
Transfer-Encoding: chunked

<?xml version='1.0' encoding='UTF-8'?>
<service xmlns:atom="http://www.w3.org/2005/Atom"
         xmlns="http://www.w3.org/2007/app"
         xml:base="http://example.org/cosmo/atom/">
  <workspace>
    <atom:title type="text">home</atom:title>
    <collection href="collection/7ed1dea4-4513-4b67-9edb-29bdfaea37ac">
      <atom:title type="text">Brian Moseley</atom:title>
    </collection>
  </workspace>
  <workspace>
    <atom:title type="text">account</atom:title>
    <collection href="user/bcm/subscribed">
      <atom:title type="text">subscribed</atom:title>
    </collection>
    <collection href="user/bcm/preferences">
      <atom:title type="text">preferences</atom:title>
    </collection>
  </workspace>
</service>
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Open Source Applications Foundation
Except where otherwise noted, this site and its content are licensed by OSAF under an Creative Commons License, Attribution Only 3.0.
See list of page contributors for attributions.