Skip to content

Commit 77cd763

Browse files
authored
Added info on PackagesApi.
1 parent 1e06a3f commit 77cd763

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ The API has been broken up into sub API classes to make it easier to learn and t
222222
&nbsp;&nbsp;[NamespaceApi](#namespaceapi)<br/>
223223
&nbsp;&nbsp;[NotesApi](#notesapi)<br/>
224224
&nbsp;&nbsp;[NotificationSettingsApi](#notificationsettingsapi)<br/>
225+
&nbsp;&nbsp;[PackagesApi](#packagesapi)<br/>
225226
&nbsp;&nbsp;[PipelineApi](#pipelineapi)<br/>
226227
&nbsp;&nbsp;[ProjectApi](#projectapi)<br/>
227228
&nbsp;&nbsp;[ProtectedBranchesApi](#protectedbranchesapi) <br/>
@@ -340,12 +341,19 @@ List<Namespace> namespaces = gitLabApi.getNamespaceApi().findNamespaces("foobar"
340341
// Get a list of the issues's notes for project ID 1234, issue IID 1
341342
List<Note> notes = gitLabApi.getNotesApi().getNotes(1234, 1);
342343
```
344+
343345
#### NotificationSettingsApi
344346
```java
345347
// Get the current global notification settings
346348
NotificationSettings settings = gitLabApi.getNotificationSettingsApi().getGlobalNotificationSettings();
347349
```
348350

351+
#### PackagesApi
352+
```java
353+
// Get all packages for the specified project ID
354+
List<Packages> packages = gitLabApi.getPackagesApi().getPackages(1234);
355+
```
356+
349357
#### PipelineApi
350358
```java
351359
// Get all pipelines for the specified project ID

0 commit comments

Comments
 (0)