Skip to content

Project Branches API #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Mar 11, 2018
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ The API has been broken up into sub APIs classes to make it easier to learn and
&nbsp;&nbsp;[SessionApi](#sessionapi)<br/>
&nbsp;&nbsp;[SystemHooksApi](#systemhooksapi)<br/>
&nbsp;&nbsp;[UserApi](#userapi)
&nbsp;&nbsp;[ProtectedBranchesApi](#protectedbranchesapi)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to keep this list and the examples in alphabetical order.



### Sub API Examples
Expand Down Expand Up @@ -296,3 +297,8 @@ List<SystemHook> hooks = gitLabApi.getSystemHooksApi().getSystemHooks();
// Get the User info for user_id 1
User user = gitLabApi.getUserApi().getUser(1);
```

#### ProtectedBranchesApi
```java
List<ProtectedBranch> branches = gitLabApi.getProtectedBranchesApi().getProtectedBranches(project.getId());
```