Soenneker.Rebrickable.OpenApiClient
4.0.318
Prefix Reserved
dotnet add package Soenneker.Rebrickable.OpenApiClient --version 4.0.318
NuGet\Install-Package Soenneker.Rebrickable.OpenApiClient -Version 4.0.318
<PackageReference Include="Soenneker.Rebrickable.OpenApiClient" Version="4.0.318" />
<PackageVersion Include="Soenneker.Rebrickable.OpenApiClient" Version="4.0.318" />
<PackageReference Include="Soenneker.Rebrickable.OpenApiClient" />
paket add Soenneker.Rebrickable.OpenApiClient --version 4.0.318
#r "nuget: Soenneker.Rebrickable.OpenApiClient, 4.0.318"
#:package Soenneker.Rebrickable.OpenApiClient@4.0.318
#addin nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=4.0.318
#tool nuget:?package=Soenneker.Rebrickable.OpenApiClient&version=4.0.318
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Kiota.Http.HttpClientLibrary (>= 2.1.1)
- Microsoft.Kiota.Serialization.Form (>= 2.1.1)
- Microsoft.Kiota.Serialization.Json (>= 2.1.1)
- Microsoft.Kiota.Serialization.Multipart (>= 2.1.1)
- Microsoft.Kiota.Serialization.Text (>= 2.1.1)
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 |
|---|---|---|
| 4.0.318 | 29 | 9/5/2026 |
| 4.0.317 | 75 | 9/4/2026 |
| 4.0.316 | 51 | 9/4/2026 |
| 4.0.315 | 91 | 9/3/2026 |
| 4.0.314 | 64 | 9/3/2026 |
| 4.0.313 | 42 | 9/3/2026 |
| 4.0.312 | 79 | 9/1/2026 |
| 4.0.311 | 128 | 8/31/2026 |
| 4.0.310 | 126 | 8/31/2026 |
| 4.0.309 | 83 | 8/30/2026 |
| 4.0.308 | 128 | 8/29/2026 |
| 4.0.307 | 153 | 8/28/2026 |
| 4.0.306 | 220 | 8/25/2026 |
| 4.0.305 | 341 | 8/20/2026 |
| 4.0.304 | 157 | 8/18/2026 |
| 4.0.303 | 120 | 8/16/2026 |
| 4.0.302 | 102 | 8/15/2026 |
| 4.0.301 | 123 | 8/14/2026 |
| 4.0.300 | 154 | 8/12/2026 |
| 4.0.299 | 132 | 8/10/2026 |
Automated Update