shindig-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry Saputra (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SHINDIG-1677) Fix the REST response for collection to wrap it with "list" field
Date Tue, 17 Apr 2012 23:16:18 GMT

    [ https://issues.apache.org/jira/browse/SHINDIG-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256042#comment-13256042
] 

Henry Saputra commented on SHINDIG-1677:
----------------------------------------

After:

JSON:

{"list":[{"name":{"givenName":"John","formatted":"John Doe","familyName":"Doe"},"id":"john.doe"},{"name":{"givenName":"Jane","formatted":"Jane
Doe","familyName":"Doe"},"id":"jane.doe"},{"name":{"givenName":"George","formatted":"George
Doe","familyName":"Doe"},"id":"george.doe"},{"name":{"givenName":"Maija","formatted":"Maija
Meikäläinen","familyName":"Meikäläinen"},"id":"maija.m"}],"totalResults":4,"startIndex":0,"itemsPerPage":4}

XML:
<response>
 <itemsPerPage>4</itemsPerPage><startIndex>0</startIndex><totalResults>4</totalResults><filtered>false</filtered><sorted>false</sorted><updatedSince>false</updatedSince>
<list>
<entry><person><id>john.doe</id><name><familyName>Doe</familyName><formatted>John
Doe</formatted><givenName>John</givenName></name></person></entry><entry><person><id>jane.doe</id><name><familyName>Doe</familyName><formatted>Jane
Doe</formatted><givenName>Jane</givenName></name></person></entry><entry><person><id>george.doe</id><name><familyName>Doe</familyName><formatted>George
Doe</formatted><givenName>George</givenName></name></person></entry><entry><person><id>maija.m</id><name><familyName>Meikäläinen</familyName><formatted>Maija
Meikäläinen</formatted><givenName>Maija</givenName></name></person></entry>
</list>
</response>


Atom:

<feed xmlns="http://www.w3.org/2005/Atom" xmlns:osearch="http://a9.com/-/spec/opensearch/1.1">
  <entry>
    <id>urn:guid:john.doe</id>
    <content type="application/xml">
      <person xmlns="http://ns.opensocial.org/2008/opensocial">
        <id>john.doe</id>
        <name>
          <familyName>Doe</familyName>
          <formatted>John Doe</formatted>
          <givenName>John</givenName>
        </name>
      </person>
    </content>
  </entry>
  <entry>
    <id>urn:guid:jane.doe</id>
    <content type="application/xml">
      <person xmlns="http://ns.opensocial.org/2008/opensocial">
        <id>jane.doe</id>
        <name>
          <familyName>Doe</familyName>
          <formatted>Jane Doe</formatted>
          <givenName>Jane</givenName>
        </name>
      </person>
    </content>
  </entry>
  <entry>
    <id>urn:guid:george.doe</id>
    <content type="application/xml">
      <person xmlns="http://ns.opensocial.org/2008/opensocial">
        <id>george.doe</id>
        <name>
          <familyName>Doe</familyName>
          <formatted>George Doe</formatted>
          <givenName>George</givenName>
        </name>
      </person>
    </content>
  </entry>
  <entry>
    <id>urn:guid:maija.m</id>
    <content type="application/xml">
      <person xmlns="http://ns.opensocial.org/2008/opensocial">
        <id>maija.m</id>
        <name>
          <familyName>Meikäläinen</familyName>
          <formatted>Maija Meikäläinen</formatted>
          <givenName>Maija</givenName>
        </name>
      </person>
    </content>
  </entry>
  <osearch:startIndex>0</osearch:startIndex>
  <osearch:totalResults>4</osearch:totalResults>
  <osearch:itemsPerPage>4</osearch:itemsPerPage>
  <author>?</author>
  <link rel="rel">???</link>
</feed>
                
> Fix the REST response for collection to wrap it with "list" field
> -----------------------------------------------------------------
>
>                 Key: SHINDIG-1677
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1677
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 2.0.0, 2.5.0-beta1, 2.5.0
>            Reporter: Henry Saputra
>            Assignee: Henry Saputra
>              Labels: apis, collection, opensocial, rest
>             Fix For: 2.5.0
>
>         Attachments: SHINDIG-1677.patch
>
>
> From the data spec 2.0, collection field need to be wrapped with "list" filed. The JSON-RPC
endpoints already doing it correctly but the REST endpoints response havent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message