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'
Written by Ankit gupta
Related protips
1 Response
How would one go about changing the "Accept" header when using Octokit though?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Githubenterprise
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#