API for private repository

How to get the branch details in api - private repository

Can someone help with the solution

Hi @sk_1506 everything you can find here in the docs: https://docs.gitlab.com/ee/api/repositories.html

make sure your user has an access-token with api assigned to it (you can create it under user settings), and then you can use the info from the API documentation link above.

Also check projects link: https://docs.gitlab.com/ee/api/projects.html