incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <>
Subject [jira] [Created] (AMBARI-930) Map update to PUT and create to POST
Date Fri, 26 Oct 2012 19:19:12 GMT
John Speidel created AMBARI-930:

             Summary: Map update to PUT and create to POST
                 Key: AMBARI-930
             Project: Ambari
          Issue Type: Task
            Reporter: John Speidel

Changed the mapping for update and create.
Although the previous approach was corrrect technically I feel that it is better to be simple
for our case.  The decision to use PUT or POST comes down to idempotency of the operation
since the HTTP 1.1 spec states that PUT is always idempotent and POST has no such guarantees.
This ties into caching and performance but at the load that would be expected for an Ambari
server, this isn't really an issue.  So I have now used a 1-1 mapping between crud operations
and http verb. This will be easier for the api developer to determine which verb to use.

So to be explicit:
Create = POST
Update = PUT

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message