Last Updated: February 25, 2016
·
1.182K
· ankit8898

Using Github Enterprise Search Api in Preview mode

If you are using Github enterprise V3 api in your enterprise, then the search api may not work as expected as it is in preview mode. So you need to pass on the preview header.

application/vnd.github.preview+json

For Eg

curl http://githuben.intranet.yourorg.com/api/v3/search/issues?q=test -H 'User-Agent:        Octokit Ruby Gem 3.1.0' -H 'Authorization: token d3a4e3c5ff76498c5c4cbcb4b39ae64f8726ec50' -H 'Accept: application/vnd.github.preview+json'

1 Response
Add your response

How would one go about changing the "Accept" header when using Octokit though?

over 1 year ago ·