Changes

Jump to: navigation, search

Bugzilla:BzAPI

148 bytes added, 10:50, 12 July 2011
Data Formats
Aside from the above-mentioned "browsing" facility, the REST API only supports [http://www.json.org/ JSON] input, and either JSON and [http://en.wikipedia.org/wiki/JSON#JSONP JSONP] output. So objects sent and received must be in JSON format.
'''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. "Content-Type" must be "application/json". "Accept" can be either that, or "application/javascript" for JSONP - add a "callback" parameter to name your callback.(Due to [https://bugzilla.mozilla.org/show_bug.cgi?id=645945 a bug] in the Perl package Catalyst::Controller::REST, callbacks cannot contain dots.)
== Authentication ==
Accountapprovers, antispam, confirm, emeritus
4,925
edits

Navigation menu