Bugzilla:BzAPI: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 49: Line 49:
Main Mozilla server (https://bugzilla.mozilla.org/):
Main Mozilla server (https://bugzilla.mozilla.org/):


  [https://api-dev.bugzilla.mozilla.org/0.4/ https://api-dev.bugzilla.mozilla.org/0.4/]
  [https://api-dev.bugzilla.mozilla.org/0.5/ https://api-dev.bugzilla.mozilla.org/0.5/]
  [https://api-dev.bugzilla.mozilla.org/latest/ https://api-dev.bugzilla.mozilla.org/latest/]
  [https://api-dev.bugzilla.mozilla.org/latest/ https://api-dev.bugzilla.mozilla.org/latest/]


Staging server (https://bugzilla-stage-tip.mozilla.org/):
Staging server (https://bugzilla-stage-tip.mozilla.org/):


  [https://api-dev.bugzilla.mozilla.org/stage/0.4/ https://api-dev.bugzilla.mozilla.org/stage/0.4/]
  [https://api-dev.bugzilla.mozilla.org/stage/0.5/ https://api-dev.bugzilla.mozilla.org/stage/0.5/]
  [https://api-dev.bugzilla.mozilla.org/stage/latest/ https://api-dev.bugzilla.mozilla.org/stage/latest/]
  [https://api-dev.bugzilla.mozilla.org/stage/latest/ https://api-dev.bugzilla.mozilla.org/stage/latest/]


Line 77: Line 77:
'''On every request, you must set both the "Accept" and "Content-Type" HTTP headers to the MIME type of the data format you are using to communicate with the API.''' Content-Type tells the API how to interpret your request, and Accept tells it how you want your data back.
'''On every request, you must set both the "Accept" and "Content-Type" HTTP headers to the MIME type of the data format you are using to communicate with the API.''' Content-Type tells the API how to interpret your request, and Accept tells it how you want your data back.


Currently, the API has only been tested with JSON (MIME type: "application/json") and JSONP (MIME type: "application/javascript" - add a "callback" parameter to name your callback). However, it's also possible to use application/xml. Feel free to see what you get back, and then try feeding it back in again. But be aware that the XML output format, and any other non-JSON formats for that matter, are very much ''not'' frozen.
Currently, the API has only been tested with JSON (MIME type: "application/json") and JSONP (MIME type: "application/javascript" - add a "callback" parameter to name your callback). However, it's also possible to use application/xml. Feel free to see what you get back, and then try feeding it back in again. But be aware that the XML output format is very much ''not'' frozen, and may change at any time.


== Errors ==
== Errors ==
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits

Navigation menu