Soenneker.Rebrickable.OpenApiClient
11.0.358
Prefix Reserved
dotnet add package Soenneker.Rebrickable.OpenApiClient --version 11.0.358
NuGet\Install-Package Soenneker.Rebrickable.OpenApiClient -Version 11.0.358
<PackageReference Include="Soenneker.Rebrickable.OpenApiClient" Version="11.0.358" />
<PackageVersion Include="Soenneker.Rebrickable.OpenApiClient" Version="11.0.358" />
<PackageReference Include="Soenneker.Rebrickable.OpenApiClient" />
paket add Soenneker.Rebrickable.OpenApiClient --version 11.0.358
#r "nuget: Soenneker.Rebrickable.OpenApiClient, 11.0.358"
#:package Soenneker.Rebrickable.OpenApiClient@11.0.358
#addin nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=11.0.358
#tool nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=11.0.358
Soenneker.Rebrickable.OpenApiClient
Generated request builders for Rebrickable LEGO sets, parts, colors, minifigures, elements, themes, and user collections.
Installation
dotnet add package Soenneker.Rebrickable.OpenApiClient
Usage
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Rebrickable.OpenApiClient;
using var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Add("Authorization", $"key {apiKey}");
var adapter = new HttpClientRequestAdapter(
new AnonymousAuthenticationProvider(),
httpClient: httpClient)
{
BaseUrl = "https://rebrickable.com"
};
var client = new RebrickableOpenApiClient(adapter);
await using Stream colors = await client.Api.V3.Lego.Colors.GetAsync(
cancellationToken: cancellationToken);
Rebrickable requires the literal key prefix in the Authorization header. The generated operations return raw response streams because that is how the source schema describes their payloads; callers own and must dispose those streams.
List endpoints are paginated. Use the page and page_size query parameters or deserialize the response's next value rather than assuming the first stream contains every result.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.2)
- Microsoft.Kiota.Serialization.Form (>= 2.1.2)
- Microsoft.Kiota.Serialization.Json (>= 2.1.2)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.2)
- Microsoft.Kiota.Serialization.Text (>= 2.1.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Soenneker.Rebrickable.OpenApiClient:
| Package | Downloads |
|---|---|
|
Soenneker.Rebrickable.ClientUtil
Provides a lazily initialized, authenticated Rebrickable API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.358 | 0 | 10/26/2026 |
| 11.0.357 | 37 | 10/26/2026 |
| 4.0.356 | 57 | 10/25/2026 |
| 4.0.355 | 55 | 10/24/2026 |
| 4.0.354 | 53 | 10/23/2026 |
| 4.0.353 | 57 | 10/22/2026 |
| 4.0.352 | 58 | 10/21/2026 |
| 4.0.351 | 101 | 10/20/2026 |
| 4.0.350 | 138 | 10/14/2026 |
| 4.0.349 | 160 | 10/14/2026 |
| 4.0.343 | 109 | 10/13/2026 |
| 4.0.342 | 92 | 10/13/2026 |
| 4.0.341 | 89 | 10/12/2026 |
| 4.0.340 | 184 | 10/11/2026 |
| 4.0.339 | 94 | 10/10/2026 |
| 4.0.338 | 203 | 10/3/2026 |
| 4.0.337 | 114 | 10/1/2026 |
| 4.0.336 | 218 | 9/27/2026 |
| 4.0.335 | 142 | 9/25/2026 |
| 4.0.334 | 173 | 9/24/2026 |
Enable runtime async for compatible .NET 11 projects