Github REST API is not working for custom url #24459
-
I am trying to use the Github API v3 in order to get all the files in the repositories and other details. But in my organization we have the github url as https://github.abc.company_name.com. In this case I keep my REST url as https://abi.github.abc.company_name.com instead of https://abi.github.com. It keep gives “Could not get any response”. I tried with different authentication. I am not able to get any 200 response. Please help me. Ref URL : https://developer.github.com/v3/ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
To access APIs on GitHub Enterprise, you need to call the APIs as below:
So if your GitHub url is https://github.abc.company_name.com, then you need to call the APIs with the base url as below:
Also note that you would need to add Basic Auth header when you make the API call since the APIs would be secured. |
Beta Was this translation helpful? Give feedback.
To access APIs on GitHub Enterprise, you need to call the APIs as below:
So if your GitHub url is https://github.abc.company_name.com, then you need to call the APIs with the base url as below:
Also note that you would need to add Basic Auth header when you make the API call since the APIs would be secured.