Hi Frank,

The resource denoted by objects/{pid}/datastreams is not an XML file
-- it is the more abstract notion of the set of datastreams in the
indicated object. In REST, it is fine for a single resource to have
multiple representations, one of which is more detailed than the
other.

- Chris

On Wed, Aug 3, 2011 at 9:30 AM, Asseg, Frank
<frank.as...@fiz-karlsruhe.de> wrote:
> Hola guys!
>
> the eSciDoc guys raised a good point about adding the method to the
> listDatastreams is braeking RESTfulness, since two different resources
> would be referenced by the same URI.
>
> "An important concept in REST is the existence of resources (sources of
> specific information), each of which is referenced with a global
> identifier (e.g., a URI in HTTP)."
> --from
> http://en.wikipedia.org/wiki/Representational_State_Transfer#Central_principle
>
> since the two XML files (the datastreamlist and the datastreamprofiles)
> are different resources, they should have they're own respective URIs.
>
> Have fun!
>
> Frank
>
> --
> Frank Asseg
> ePublishing & eScience
> Development & Applied Research
> Phone +49 7247-808-515
> Fax +49 7247 808-133
> frank.as...@fiz-karlsruhe.de
>
>
> FIZ Karlsruhe – Leibniz Institute for Information Infrastructure
> Hermann-von-Helmholtz-Platz 1
> 76344 Eggenstein-Leopoldshafen, Germany
>
> http://www.fiz-karlsruhe.de/
>
>
> -------------------------------------------------------
>
> Fachinformationszentrum Karlsruhe, Gesellschaft für 
> wissenschaftlich-technische Information mbH.
> Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 
> 101892.
> Geschäftsführerin: Sabine Brünger-Weilandt.
> Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
>
> ------------------------------------------------------------------------------
> BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Fedora-commons-developers mailing list
> Fedora-commons-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
>

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fedora-commons-developers mailing list
Fedora-commons-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to