From 77cd763f6fbd9b2e810b5f533aa0055d6306c0aa Mon Sep 17 00:00:00 2001 From: Greg Messner Date: Fri, 19 Apr 2019 16:16:38 -0700 Subject: [PATCH] Added info on PackagesApi. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9a5f9324..d0f91bdd 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,7 @@ The API has been broken up into sub API classes to make it easier to learn and t   [NamespaceApi](#namespaceapi)
  [NotesApi](#notesapi)
  [NotificationSettingsApi](#notificationsettingsapi)
+  [PackagesApi](#packagesapi)
  [PipelineApi](#pipelineapi)
  [ProjectApi](#projectapi)
  [ProtectedBranchesApi](#protectedbranchesapi)
@@ -340,12 +341,19 @@ List namespaces = gitLabApi.getNamespaceApi().findNamespaces("foobar" // Get a list of the issues's notes for project ID 1234, issue IID 1 List notes = gitLabApi.getNotesApi().getNotes(1234, 1); ``` + #### NotificationSettingsApi ```java // Get the current global notification settings NotificationSettings settings = gitLabApi.getNotificationSettingsApi().getGlobalNotificationSettings(); ``` +#### PackagesApi +```java +// Get all packages for the specified project ID +List packages = gitLabApi.getPackagesApi().getPackages(1234); +``` + #### PipelineApi ```java // Get all pipelines for the specified project ID -- GitLab