[katello-devel] How should we post objects

Bryan Kearney bkearney at redhat.com
Mon Jul 16 13:38:09 UTC 2012


On 07/13/2012 11:07 AM, Dmitri Dolguikh wrote:
> The difference between creating a new object and updating an existing
> one is (in the context of this discussion) in idempotency: repeated
> calls to create an object may return a new object every time, while
> making the same change over and over again should result in the same
> state of the object. So: POST is for creation, PUT is for updates.
>

Agree. My main qustion is if I should be opening bugs where the json 
which is postd does not have the following:

object_name: {
attr: "foo"
}

an instead has:

{
attr: "foo"
}

-- bk





More information about the katello-devel mailing list