[dna-issues] [JBoss JIRA] Commented: (DNA-309) Design URLs, leaving room for future UI features and maybe WebDAV

Randall Hauch (JIRA) jira-events at lists.jboss.org
Sat Mar 21 10:00:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/DNA-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12458490#action_12458490 ] 

Randall Hauch commented on DNA-309:
-----------------------------------

Another interesting blog from Roy Fielding, entitled "It's okay to use POST": http://roy.gbiv.com/untangled/2009/it-is-okay-to-use-post

Reminder, it is appropriate to use PUT when _replacing_ a resource, since PUT really requires a whole definition of the resource.  POST, on the other hand, specifies that the server accept the enclosed entity as a _subordinate_ of the resource with the supplied URI (e.g., POST a file under a directory with URI, or POST a property or set of properties under a node, or POST a child under a parent node).  This is different from PUT, which means that the enclosed entity be stored under the supplied URI.

Recall that GET and HEAD (identical to GET except that the server may not return a message body in the response) are "safe" methods in that they imply the client only asked for a retrieval, and they should not have the significance of any action other than a retrieval.  This doesn't mean that the server won't change its state; instead, it means that the client did not ask for side effects and therefore should not be accountable for them.

Also, PUT, POST and DELETE are idempotent, meaning multiple invocations do not change the result.  The OPTIONS and TRACE methods are also idempotent.

BTW, it is not clear to me what effect that same-name-siblings have on resource URIs.

> Design URLs, leaving room for future UI features and maybe WebDAV
> -----------------------------------------------------------------
>
>                 Key: DNA-309
>                 URL: https://jira.jboss.org/jira/browse/DNA-309
>             Project: DNA
>          Issue Type: Sub-task
>          Components: Web Application
>    Affects Versions: 0.3
>            Reporter: Johnny Verhaeg
>             Fix For: 0.5
>
>
> For right now, we need URLs for just publishing and un-publishing content.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list