Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Specifying bug arrays for REST api?

4 views
Skip to first unread message

Axel Hecht

unread,
Nov 18, 2014, 7:17:53 AM11/18/14
to mozilla-...@lists.mozilla.org
Hi,

I'm wondering how to specify a list of bugs for, say, the comments REST
api. The docs say you can specify an array of IDs or aliases [1], but I
haven't figured out how to actually do that?

I'd like to get https://bugzilla.mozilla.org/rest/bug/571746/comment but
for more than one bug.

Thanks

Axel

[1]
http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bug.html#comments

David Lawrence

unread,
Nov 18, 2014, 11:14:14 AM11/18/14
to Axel Hecht, mozilla-...@lists.mozilla.org
Yes you can as of a few days ago with a change that was pushed live. So now you can do something like:

https://bugzilla.mozilla.org/rest/bug/35/comment?ids=36&ids=37...

Internally it will create a list "ids":[35,36,37] before passing off to the backend to retrieve the bug comments.

dkl
> _______________________________________________
> tools-bmo mailing list
> tool...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/tools-bmo

--
David Lawrence
d...@mozilla.com

Axel Hecht

unread,
Nov 18, 2014, 5:27:25 PM11/18/14
to mozilla-...@lists.mozilla.org
Thanks, works like charm.

Axel
0 new messages