Get a behind-the-scenes look at development on the GitHub API team.
Developers and businesses rely on the stability and consistency of the GitHub API for critical tasks. Changes to the API could break production deployments (or continuous integration, authentication, etc.) for thousands of businesses. And yet, GitHub.com continues to evolve, improving existing features, and adding new ones. The GitHub API needs to evolve as well. We'll explore the design philosophies and techniques that we use to provide a reliable API, while continuing to ship improvements every day.
35.
$ curl https://api.github.com/search/code?q=bacon
Be Explicit
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
=> HTTP/1.1 415 Unsupported Media Type
36.
$ curl https://api.github.com/search/code?q=bacon
Be Explicit
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
=> HTTP/1.1 415 Unsupported Media Type
37.
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
$ curl https://api.github.com/search/code?q=bacon
Be Explicit
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
=> HTTP/1.1 415 Unsupported Media Type
38.
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
{
"message": "If you would like to help us test the Search API during its
preview period, you must specify a custom media type in the
'Accept' header. Please see the docs for full details.",
"documentation_url": "http://developer.github.com/v3/search#preview-mode"
}
$ curl https://api.github.com/search/code?q=bacon
Be Explicit
=> HTTP/1.1 415 Unsupported Media Type