This document serves as the API index page for WebApiClientCore, providing an overview of core namespaces and types.
Note
This document is an API index. Detailed API documentation can be obtained through:
- Use F12 (Go to Definition) in your IDE to view complete XML documentation
- Use docfx tool to automatically generate complete API documentation
- View dependency information on NuGet
Core namespace containing core interfaces and base types for HTTP API declarations.
| Type | Description |
|---|
IHttpApi | Marker interface for HTTP API interfaces, all API interfaces should inherit from this |
ITask<T> | Async task wrapper supporting chained calls and retry mechanisms |
IRetryTask<T> | Interface for tasks supporting retry |
IHandleTask | Cancellable task handle interface |
IChunkedable | Interface supporting chunked transfer |
| Type | Description |
|---|
HttpApi | Static factory class for HTTP API, used to create API instances |
HttpRequestHeader | Constants for HTTP request headers |
HttpPath | HTTP path parsing and processing utilities |
JsonString | Wrapper type for JSON strings |
CollectionFormat | Collection formatting options (CSV, SSV, TSV, PIPES, MULTI) |
| Type | Description |
|---|
ApiParameterContextExtensions | Extension methods for API parameter context |
ApiRequestContextExtensions | Extension methods for API request context |
ApiResponseContextExtensions | Extension methods for API response context |
TaskExtensions | Task-related extension methods |
| Type | Description |
|---|
ApiException | Base exception class for API calls |
ApiRetryException | Exception thrown after retry failures |
ApiInvalidConfigException | Exception thrown for invalid configuration |
ApiResultNotMatchException | Exception thrown when result doesn't match |
ApiResponseStatusException | Response status exception |
ApiReturnNotSupportedException | Exception for unsupported return types |
ProxyTypeException | Proxy type creation exception |
ProxyTypeCreateException | Proxy type creation failure exception |
TypeInstanceCreateException | Type instance creation exception |
| Type | Description |
|---|
JsonContent | JSON format HTTP content |
XmlContent | XML format HTTP content |
FormContent | Form format HTTP content |
FormDataContent | multipart/form-data format HTTP content |
FormDataTextContent | Form text content |
FormDataFileContent | Form file content |
JsonPatchContent | JSON Patch format HTTP content |
BufferContent | Buffer content wrapper |
Attribute namespace containing various attributes for declarative HTTP requests.
| Type | Description |
|---|
HttpGetAttribute | Marks HTTP GET request |
HttpPostAttribute | Marks HTTP POST request |
HttpPutAttribute | Marks HTTP PUT request |
HttpDeleteAttribute | Marks HTTP DELETE request |
HttpPatchAttribute | Marks HTTP PATCH request |
HttpHeadAttribute | Marks HTTP HEAD request |
HttpOptionsAttribute | Marks HTTP OPTIONS request |
HttpMethodAttribute | Base class for custom HTTP method attributes |
| Type | Description |
|---|
HttpHostAttribute | Sets the base address for API |
HttpHostBaseAttribute | Base class for host attributes |
TimeoutAttribute | Sets request timeout |
HeaderAttribute | Sets request header |
FormFieldAttribute | Adds form field |
FormDataTextAttribute | Adds form text data |
BasicAuthAttribute | Sets Basic authentication header |
HttpCompletionOptionAttribute | Sets HTTP completion option |
| Type | Description |
|---|
UriAttribute | Specifies request URI |
PathQueryAttribute | Path query parameter |
HeaderAttribute | Request header parameter |
HeadersAttribute | Multiple request headers parameter |
JsonContentAttribute | JSON body parameter |
XmlContentAttribute | XML body parameter |
HttpContentAttribute | Raw HttpContent parameter |
FormContentAttribute | Form body parameter |
FormDataContentAttribute | Multipart form parameter |
FormFieldAttribute | Form field parameter |
FormDataTextAttribute | Form text parameter |
JsonFormFieldAttribute | JSON form field |
JsonFormDataTextAttribute | JSON form text |
RawJsonContentAttribute | Raw JSON string content |
RawXmlContentAttribute | Raw XML string content |
RawStringContentAttribute | Raw string content |
RawFormContentAttribute | Raw form content |
TimeoutAttribute | Parameter-level timeout setting |
| Type | Description |
|---|
JsonReturnAttribute | JSON response handler |
XmlReturnAttribute | XML response handler |
RawReturnAttribute | Raw response handler |
DefaultValueReturnAttribute | Default value return handler |
CustomValueReturnAttribute | Custom value return handler |
NoneReturnAttribute | No return value handler |
SpecialReturnAttribute | Special return handler |
| Type | Description |
|---|
ApiFilterAttribute | API filter base attribute |
LoggingFilterAttribute | Logging filter |
LogMessage | Log message configuration |
| Type | Description |
|---|
ApiCacheAttribute | API response cache attribute |
Context namespace containing various context types during API calls.
| Type | Description |
|---|
HttpContext | HTTP context containing request and response |
HttpClientContext | HttpClient related context |
ApiRequestContext | API request context |
ApiParameterContext | API parameter context |
ApiResponseContext | API response context |
Serialization namespace containing JSON, XML and other serialization-related types.
| Type | Description |
|---|
JsonBufferSerializer | JSON buffer serializer |
XmlSerializer | XML serializer |
KeyValueSerializer | Key-value pair serializer |
Utf8JsonWriterCache | UTF-8 JSON writer cache |
| Type | Description |
|---|
JsonDateTimeConverter | JSON date time converter |
JsonDateTimeAttribute | JSON date time attribute |
JsonLocalDateTimeConverter | JSON local date time converter |
JsonStringTypeConverter | JSON string type converter |
| Type | Description |
|---|
KeyValueSerializerOptions | Key-value serialization options |
KeyNamingOptions | Key naming options |
KeyNamingStyle | Key naming style (CamelCase, PascalCase, SnakeCase, etc.) |
Abstraction namespace defining core abstract interfaces and descriptor types.
| Type | Description |
|---|
IApiFilter | API filter interface |
IApiParameter | API parameter interface |
IHttpApiActivator | HTTP API activator interface |
IHttpApiInterceptor | HTTP API interceptor interface |
IResponseCacheProvider | Response cache provider interface |
IApiActionDescriptorProvider | API action descriptor provider interface |
IApiActionInvokerProvider | API action invoker provider interface |
| Type | Description |
|---|
ApiActionDescriptor | API action descriptor |
ApiParameterDescriptor | API parameter descriptor |
ApiReturnDescriptor | API return value descriptor |
ApiDataTypeDescriptor | API data type descriptor |
| Type | Description |
|---|
HttpApiOptions | HTTP API configuration options |
HttpApiRequestMessage | HTTP API request message |
CachePolicy | Cache policy |
ResultStatus | Result status enum |
ResponseCacheEntry | Response cache entry |
ResponseCacheResult | Response cache result |
KeyValue | Key-value pair |
IDataCollection | Data collection interface |
HTTP message handler namespace.
| Type | Description |
|---|
AuthorizationHandler | Authorization handler base class |
CookieAuthorizationHandler | Cookie authorization handler |
Dependency injection namespace providing service registration and configuration.
WebApiClientCore is distributed as NuGet packages:
In IDEs (such as Visual Studio, JetBrains Rider, VS Code), view complete API documentation through:
- Go to Definition: Press F12 or Ctrl+Click on type name
- Object Browser: Open "View > Object Browser" in Visual Studio
- IntelliSense: API hints are displayed automatically while typing
All public APIs include complete XML documentation comments that can be viewed directly in your IDE.
To generate a complete API reference documentation website, use the docfx tool:
# Install docfx
dotnet tool install -g docfx
# Generate documentation
docfx init -q
docfx docfx.json --serve
docfx automatically reads assembly XML documentation and generates a complete API reference website.