Chapter 6. Webhooks, External Services, and the API

In this chapter, we will cover the following recipes:

  • Working with external services
  • Using webhooks
  • Using system hooks
  • Getting your private token for the API
  • Understanding the API status codes
  • Managing your project via the API
  • Managing issues via the API
  • Working with the other API resources
  • Working with the API sudo commands

Introduction

When you have an external system that holds information—for example, an external bug tracker—it would be nice to link GitLab and that system together. In this chapter, we will take a look at how you can achieve this. We will also take a look at webhooks in order to notify systems about events happening within your GitLab installation. Finally, we will look at the API provided ...

Get GitLab Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.