API Design Questions (2)

Gervase Markham gerv at mozilla.org
Thu Sep 24 10:14:28 UTC 2009

On 23/09/09 22:59, Max Kanat-Alexander wrote:
> 	Just don't specify assigned_to.

Hmm. I guess for simplicity of API use I wanted people to be able to 
send stuff like:

{ "priority": "P5" }

and have that do the obvious, simple thing. But if absence of a field 
means something, then that breaks. This would mean you'd always have to 
GET every bug before PUTting it, even if you had most of a 
representation of that bug from the call which lists bugs.

But then, maybe the RESTful way is that you have to PUT an entire 
representation? But you might say that you are doing that in the case 
above, you are just saying "everything else is assumed not to change"...


dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org

More information about the developers mailing list