XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] RESTful operations on document fragments

actually I think the way you have to update a document fragment is
GET Document
append new fragment under document element
PUT Document.

So what happens when someone GETs, appends, PUTS a fragment that you
don't want there. It's basically not easy to disallow updating of
particular fragments because REST is based on handling the resources,
not fragments of resources. It's like I said, if  a fragment should be
updateable then it argues that the fragment is in fact an independent
resource.

Cheers,
Bryan Rasmussen

On Mon, Feb 25, 2008 at 3:01 PM, Simon St.Laurent <simonstl@simonstl.com> wrote:
> Robert Koberg wrote:
>  > On Mon, 2008-02-25 at 08:38 -0500, Simon St.Laurent wrote:
>  >> Andrew Welch wrote:
>  >>>> I can always create abstraction layer upon abstraction layer.  They make
>  >>>>  pretty piles, until they fall over.
>  >>> How about creating a servlet called something like update, then map
>  >>> all urls to it:
>  >> That's not RESTful - that's putting an update verb in a URI noun.
>  >
>  > updater?
>
>  No.  The reason REST works is that you have a limited set of verbs (GET,
>  PUT, POST, DELETE) operating on a huge set of nouns - the URIs.
>
>  The problem here isn't finding update capabilities - POST already
>  provides that.  The problem is addressing resources at a granularity
>  level that's more convenient for doing updates than a complete document.
>
>
>  Thanks,
>  Simon St.Laurent
>  Retired XML troublemaker
>  http://simonstl.com/
>
>  _______________________________________________________________________
>
>
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>  to support XML implementation and development. To minimize
>  spam in the archives, you must subscribe before posting.
>
>  [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>  Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
>  subscribe: xml-dev-subscribe@lists.xml.org
>  List archive: http://lists.xml.org/archives/xml-dev/
>  List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS