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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.GitLab.OpenApiClient" Version="11.0.221" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.GitLab.OpenApiClient" Version="11.0.221" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.GitLab.OpenApiClient" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.GitLab.OpenApiClient --version 11.0.221
                    
#r "nuget: Soenneker.GitLab.OpenApiClient, 11.0.221"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.GitLab.OpenApiClient@11.0.221
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.GitLab.OpenApiClient&version=11.0.221
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.GitLab.OpenApiClient&version=11.0.221
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image 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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Update Soenneker.GitLab.OpenApiClient