Book Image

Gitlab Cookbook

By : Jeroen van Baarsen
Book Image

Gitlab Cookbook

By: Jeroen van Baarsen

Overview of this book

Table of Contents (16 chapters)
GitLab Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Working with other API resources


GitLab has more resources you can manage via the API. They are as follows:

  • Users: The following tasks can be performed to manage users:

    • List users

    • Get, create, edit, and delete a user

    • List SSH keys for a given user

    • Get, create, and edit SSH keys for a user

  • Sessions: These can be managed in the following way:

    • Log in with your e-mail and password to get your private token

  • Projects: These can be managed in the following ways:

    • List all the projects

    • Get a single project

    • Get project events

    • Create a new project

    • Remove a project

    • List all the team members for a given project

    • Get, create, edit, and delete a team member

    • Get, add, edit, and delete project hooks

    • Get all the branches

    • Get a single branch

    • Protect and unprotect branches

  • Project snippets: These can be handled in the following ways:

    • Get, create, update, and delete code snippets for a project

  • Repositories: These can be managed in the following ways:

    • List all the Git tags

    • Create a new Git tag

    • Get a raw file or blob content

    • Compare...