Lab v0.2.2-dev Lab View Source

Interface to the Gitlab API

Lab provides an interface for different versions of the Gitlab API via adapters.

A Lab configutation using the V4 adapter:

config :lab,
  gitlab_api_endpoint: "https://git.lab/api/v4",
  gitlab_api_private_token: "token",
  adapter: Lab.Adapters.V4

Check the adapter’s documentation for specific adapter documentation.

Link to this section Summary

Link to this section Functions

Link to this function all(model, params \\ []) View Source

Index a resource

Callback implementation for Lab.API.all/2.

Link to this function create(model, params \\ []) View Source

Create a resource

Callback implementation for Lab.API.create/2.

Link to this function delete(model, params \\ []) View Source

Delete a resource

Callback implementation for Lab.API.delete/2.

Link to this function get(model, id, params \\ []) View Source

Read a resource

Callback implementation for Lab.API.get/3.

Link to this function update(model, params \\ []) View Source

Update a resource

Callback implementation for Lab.API.update/2.