API Reference
Complete API documentation for RestClient.Net
Core API
Code Generators
OpenAPI Generator
Generate type-safe C# clients from OpenAPI 3.x
MCP Generator
Generate MCP servers for AI integration
Guides
Getting Started
Installation and basic usage
Exhaustion Analyzer
Compile-time exhaustiveness checking with Roslyn
NuGet Packages
| Package | Description |
|---|---|
RestClient.Net |
Core library with HttpClient extensions |
RestClient.Net.OpenApiGenerator |
OpenAPI 3.x client generator |
RestClient.Net.McpGenerator |
MCP server generator |
Exhaustion |
Roslyn analyzer for switch exhaustiveness |
External References
- HttpClient - .NET HTTP client
- IHttpClientFactory - Factory for HttpClient pooling
- System.Text.Json - JSON serialization
- OpenAPI Specification - API specification format
- Model Context Protocol - AI tool integration