API Design Questions (4)

Gervase Markham gerv at mozilla.org
Thu Oct 1 09:27:13 UTC 2009


On 30/09/09 11:42, Roman Pszonka wrote:
>> {
>>   blocks: [ "http://bzapi.example.com/bug/23",
>>             "http://bzapi.example.com/bug/76" ]
>> }
>
> That would allow linking between different databases, right? If you
> later decide to support this by bugzilla, there won't be a need to
> change API.

It would. Exactly how blocks, depends_on and see_also integrate in that 
world is a... complicated question.

But I think you could, without problem, define the fields as either bug 
number (in which case, it's the current installation) or URL.

I don't want to have both, because it's an extra level of indirection. 
Perhaps I do just want URLs everywhere, and no bug numbers? Hmm...

Max, what do you think? Is it RESTfully right for blocks (and 
depends_on, and other fields which contain bug numbers) to look like the 
above?

Gerv

_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list