I am not able to pull master branch details using the git hub rest api url
I am not able to pull master branch details using the git hub rest api url
I am trying to pull all the git branch details using git hub rest api. But it was not pulling all the branch details.Even I don't see master branch details also.
PFB the url I used to fetch the branch details:
GET github.com/api/v3/repos/:repo/branches
GET
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
GitHub and GitLab have different APIs: pick one tag and stick with it. Don't use the api tag at all (it says so right in its pop-up info!). Git itself does not have a REST API. Since you mention GitHub in the subject and body, I'll pick that as the tag to keep. And in general, see Minimal, Complete, and Verifiable example - you provided a sample
GET
but not what you expected vs what you actually got.– torek
Jun 29 at 14:32