AutomatedPackagePublishingSDK 15.5.6
dotnet add package AutomatedPackagePublishingSDK --version 15.5.6
NuGet\Install-Package AutomatedPackagePublishingSDK -Version 15.5.6
<PackageReference Include="AutomatedPackagePublishingSDK" Version="15.5.6" />
<PackageVersion Include="AutomatedPackagePublishingSDK" Version="15.5.6" />
<PackageReference Include="AutomatedPackagePublishingSDK" />
paket add AutomatedPackagePublishingSDK --version 15.5.6
#r "nuget: AutomatedPackagePublishingSDK, 15.5.6"
#:package AutomatedPackagePublishingSDK@15.5.6
#addin nuget:?package=AutomatedPackagePublishingSDK&version=15.5.6
#tool nuget:?package=AutomatedPackagePublishingSDK&version=15.5.6
Swagger Petstore - OpenAPI 3.0
The Swagger Petstore - OpenAPI 3.0 SDK for .NET provides access to the Swagger Petstore - OpenAPI 3.0 REST APIs from .NET applications.
Looking for a specific signature, model, enum, or error type? This SDK ships a generated, machine-readable SDK map — a lookup index of the SDK's entire C# surface. Consult it before grepping or scanning the source tree; it answers most contract questions directly and, when a source file is genuinely needed, names the exact one to open. Details under SDK map.
This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about Swagger at https://swagger.io. In the third iteration of the pet store, we've switched to the design first approach! You can now help us improve the API whether it's by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links:
Installation
Add the .NET SDK to your project from NuGet:
dotnet add package AutomatedPackagePublishingSDK
Quick Start
Dependency Injection
Register the client with IServiceCollection and resolve it from the container. The HttpClient is managed by IHttpClientFactory. Configure the client's behavior through SwaggerPetstoreOpenApi30ClientOptions.
services.AddSwaggerPetstoreOpenApi30Client(options =>
{
options.PetstoreAuth = "YOUR_API_KEY";
options.ApiKey = "YOUR_API_KEY";
options.Environment = ServerEnvironment.Production;
// TODO: configure more client options here
});
Direct Instantiation
Create the client by passing an HttpClient you manage yourself. Configure the client's behavior through SwaggerPetstoreOpenApi30ClientOptions.
var httpClient = new HttpClient();
// TODO: configure more client options here
var options =
new SwaggerPetstoreOpenApi30ClientOptions
{
PetstoreAuth = "YOUR_API_KEY",
ApiKey = "YOUR_API_KEY",
Environment = ServerEnvironment.Production,
};
var client = new SwaggerPetstoreOpenApi30Client(httpClient, options);
Usage
For code examples and error responses, see API Reference.
SDK map
This SDK ships a generated SDK map — sdk-map.md plus the map/ pages — a deterministic, lookup-oriented table of contents of the SDK's C# surface, generated by APIMatic alongside this SDK.
Read it before scanning the source. Whether you are an AI coding assistant or searching by hand, the map answers "what is the exact …" by lookup for every call-level contract, and for anything it does not carry it names the one file that does — so you never have to search the source tree:
sdk-map.md— the index: client construction, servers/auth, the options/retry reference, the SDK-wide defaults the operation rows rely on, and link tables intomap/.map/operations/— one page per controller: the exact C# signature, the return type, the error type with its typedTryGet…accessors, and pagination — plus, per operation, a Type sources table naming the file that declares every type that operation mentions.
Model shapes — record fields with their JSON wire names, enum member names and wire values, OneOf/AnyOf union variants — are not duplicated in the map. Take the path from the operation's Type sources table and read the declaring file; it is the single source of truth and cannot go stale against the code.
Each operation row states what is specific to that operation. The SDK-wide defaults are stated once in sdk-map.md — throw-only (no Result-style no-throw variants), no pagination, the four fixed RawError accessors, the Default server group — and a row appears only where its operation departs from one. A row silent on pagination is telling you that operation has none.
The HTTP verb and route, and the endpoint's behavioural prose, live on the operation itself, in the source file named at the top of its operations page. Read them there when something needs them — wiring a mock, reading a provider log, or settling a rule about what you must pass.
Workflow: look the fact up in the map → where the map leaves something ambiguous, open the one source file the row names → the compiler is the backstop (a name that isn't in the map won't build). Don't scan or grep the tree to find things — the map is the locator.
Which one to reach for
The map and the API Reference answer different questions, and the map is generated from this SDK's source so it stays in lockstep with the code it describes.
| Use | For |
|---|---|
sdk-map.md + map/ |
Traversing the SDK and working out its surface — locating the operation you need (this SDK exposes 19 operations), its exact signature and parameter order, the shape and JSON wire names of the models it takes and returns, which error type it throws and how to read it, and the source file behind any of it. This is the index to consume the SDK from, and the one to reach for first. |
api-reference.md |
Usage guidance for a single operation once you know which one you want — a runnable code sample, per-parameter descriptions, and the error responses it can return. |
Best Practices
Use a single SwaggerPetstoreOpenApi30Client instance for the lifetime of your application and
reuse it across all requests. Creating a new instance per request might exhaust the
connection pool.
License
This SDK is distributed under the MIT License.
Support
Refer to the API reference for detailed information on available operations with code samples.
For further assistance, please contact support at apiteam@swagger.io.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 10.0.8)
- Microsoft.Bcl.TimeProvider (>= 10.0.8)
- Microsoft.Extensions.Http (>= 10.0.8)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
- Polly (>= 8.6.5)
- System.Net.Http.Json (>= 10.0.8)
- System.Net.ServerSentEvents (>= 10.0.8)
- System.Text.Json (>= 10.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 15.5.6 | 80 | 9/8/2026 |
| 15.5.5 | 76 | 9/8/2026 |
| 9.2.3 | 100 | 8/4/2026 |
| 9.1.0 | 99 | 8/4/2026 |
| 9.0.2 | 92 | 8/4/2026 |
| 3.0.2 | 107 | 4/29/2026 |
| 1.0.40 | 35 | 9/14/2026 |
| 1.0.39 | 82 | 9/7/2026 |
| 1.0.37 | 97 | 8/24/2026 |
| 1.0.34 | 93 | 8/10/2026 |
| 1.0.33 | 109 | 8/3/2026 |
| 1.0.31 | 101 | 7/20/2026 |
| 1.0.30 | 121 | 7/6/2026 |
| 1.0.28 | 115 | 6/22/2026 |
| 1.0.27 | 110 | 6/15/2026 |
| 1.0.26 | 122 | 6/8/2026 |
| 1.0.25 | 112 | 6/1/2026 |
| 1.0.23 | 105 | 5/25/2026 |
| 1.0.21 | 107 | 5/11/2026 |
| 0.7.0 | 91 | 8/24/2026 |