Soenneker.GitLab.OpenApiClient
11.0.221
Prefix Reserved
dotnet add package Soenneker.GitLab.OpenApiClient --version 11.0.221
NuGet\Install-Package Soenneker.GitLab.OpenApiClient -Version 11.0.221
<PackageReference Include="Soenneker.GitLab.OpenApiClient" Version="11.0.221" />
<PackageVersion Include="Soenneker.GitLab.OpenApiClient" Version="11.0.221" />
<PackageReference Include="Soenneker.GitLab.OpenApiClient" />
paket add Soenneker.GitLab.OpenApiClient --version 11.0.221
#r "nuget: Soenneker.GitLab.OpenApiClient, 11.0.221"
#:package Soenneker.GitLab.OpenApiClient@11.0.221
#addin nuget:?package=Soenneker.GitLab.OpenApiClient&version=11.0.221
#tool nuget:?package=Soenneker.GitLab.OpenApiClient&version=11.0.221
Soenneker.GitLab.OpenApiClient
Call GitLab's v4 REST API through strongly typed request builders and models generated by Kiota from GitLab's OpenAPI description.
Installation
dotnet add package Soenneker.GitLab.OpenApiClient
Create a client
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.GitLab.OpenApiClient;
using System.Net.Http.Headers;
var httpClient = new HttpClient
{
BaseAddress = new Uri("https://gitlab.com/")
};
httpClient.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", gitLabToken);
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient);
var client = new GitLabOpenApiClient(adapter);
Use the GitLab host root as the base URL. Generated request builders already include /api/v4 in their paths.
Using the generated surface
The client mirrors GitLab's API hierarchy beneath client.Api.V4. Endpoint methods accept a request-configuration callback for query parameters, headers, and middleware options, plus a cancellation token.
Generated method names and models follow the source OpenAPI operation exactly and can change when GitLab changes its description. Keep application-specific abstractions outside the generated namespace. For application registration and managed client reuse, use Soenneker.GitLab.OpenApiClientUtil instead of constructing the adapter directly.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.2.0)
- Microsoft.Kiota.Serialization.Form (>= 2.2.0)
- Microsoft.Kiota.Serialization.Json (>= 2.2.0)
- Microsoft.Kiota.Serialization.Multipart (>= 2.2.0)
- Microsoft.Kiota.Serialization.Text (>= 2.2.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.GitLab.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.GitLab.OpenApiClientUtil
Provides a cached GitLab OpenAPI client backed by an authenticated HTTP provider |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.221 | 55 | 12/4/2026 |
| 11.0.220 | 65 | 12/3/2026 |
| 11.0.219 | 102 | 12/2/2026 |
| 11.0.218 | 72 | 12/2/2026 |
| 11.0.217 | 163 | 12/1/2026 |
| 11.0.216 | 184 | 11/29/2026 |
| 11.0.215 | 122 | 11/28/2026 |
| 11.0.214 | 124 | 11/28/2026 |
| 11.0.213 | 122 | 11/27/2026 |
| 11.0.212 | 110 | 11/25/2026 |
| 11.0.211 | 121 | 11/24/2026 |
| 11.0.210 | 129 | 11/21/2026 |
| 11.0.209 | 120 | 11/20/2026 |
| 11.0.208 | 126 | 11/19/2026 |
| 11.0.207 | 129 | 11/18/2026 |
| 11.0.206 | 104 | 11/18/2026 |
| 11.0.205 | 132 | 11/17/2026 |
| 11.0.204 | 114 | 11/17/2026 |
| 11.0.203 | 148 | 11/14/2026 |
| 11.0.202 | 123 | 11/13/2026 |
Update Soenneker.GitLab.OpenApiClient