Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
200 OK
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://localhost:8080">
    <title>Users</title>
    <updated>2010-04-28T17:59:06.337-04:00</updated>
    <link rel="self" type="application/atom+xml" href="/frevvo/web/tn/d/api/users"/>
    <entry xmlns:fd="http://schemas.frevvo.com/fdata/2008">
        <id>john</id>
        <title type="text">john</title>
        <updated>2010-04-28T17:59:06.337-04:00</updated>
        <link type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>
        <link rel="self" type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>
        <link rel="edit" type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>
        <link rel="apps" type="application/atom+xml" 
            href="/frevvo/web/tn/d/api/apps?ownerId=john"/>
        <link rel="themes" type="application/atom+xml"
            href="/frevvo/web/tn/d/api/themes?ownerId=john"/>
    </entry>
</feed>
Note

Note that since the current logged in user is

...

johndoe

...

the feed contains only his entry. If the currenty logged in user was the administrator then a full list of all users would be returned by the server. Also note that for this release user feeds are read-only, and so new users cannot be created using the Data API.

...

Getting a UserEntry

...

It is also possible to directly get a specific User entry as long as you know the id for that user. In order to do that send the following request to the server:<pre>

Code Block
GET /frevvo/web/tn/{tenantId}/api/user/{id}

...

And the server will respond with:<pre>

Code Block
200 OK

...


<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://localhost:8080">

...


    <title>Users</title>

...


    <updated>2010-04-28T17:59:06.337-04:00</updated>

...


    <link rel="self" type="application/atom+xml" href="/frevvo/web/tn/d/api/users"/>

...


    <entry xmlns:fd="http://schemas.frevvo.com/fdata/2008">

...


        <id>john</id>

...


        <title type="text">john</title>

...


        <updated>2010-04-28T17:59:06.337-04:00</updated>

...


        <link type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>

...


        <link rel="self" type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>

...


        <link rel="edit" type="application/atom+xml" href="/frevvo/web/tn/d/api/user/john"/>

...


        <link rel="apps" type="application/atom+xml"

...


            href="/frevvo/web/tn/d/api/apps?ownerId=john"/>

...


        <link rel="themes" type="application/atom+xml"

...


            href="/frevvo/web/tn/d/api/themes?ownerId=john"/>

...


    </entry>

...


</feed>

...

Since at this point User entries are also read-only for this release, they can only be used to traverse to related feeds such as the users application and theme feeds (see the two link elements with a '''rel''' attribute with value '''apps''' and '''themes''', respectively, in the entry above)

...