Github Releases New API Version
Join the DZone community and get the full member experience.Join For Free
Using the new Github API users can manage labels, issue comments, milestones, and events.
The new API also has full support for Gists.
They’ve also made several updates to their RESTful approach:
- URLs are simpler and more consistent: https://api.github.com/repos/github/gollum/issues.json.
- Resources return url fields so that clients don’t have to build URLs.
- Create/Update actions take JSON, instead of POST parameters.
- Pagination and Rate Limiting info is returned on every applicable request.
- JSON-P requests get a special payload with header information.
The new version of the API only supports JSON as the request and response format.
There is also a new daily cap of 5000 requests for the API.
There are still supporting API v2, and will announce deprecation plans soon.
Published at DZone with permission of Kin Lane, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.