Up to now, almost everything we have done has been directly through the GitLab UI or remotely using Git commands. There are times, though, when you, as a developer or administrator, want to create automation scripts to do routine maintenance not provided by GitLab through its UI. For these situations, GitLab has provided an Application Programming Interface (API). In fact, there are two APIs provided by GitLab: the REST API and the GraphQL API.
In this chapter, we will describe the two APIs provided by GitLab ...