RestResourceEntity
Overview
A plugin that provides REST endpoint configurations for resource entities in the Dosaic framework. This plugin simplifies the creation of standardized REST endpoints for entities that implement IGuidIdentifier
.
Features
Simplified REST endpoint configuration
Support for standard HTTP methods
Built-in response type management
Configurable OpenAPI documentation
Flexible authorization policies
Global response handling
Installation
To install the nuget package follow these steps:
or add as package reference to your .csproj
Usage
Configure REST endpoints for your resource entities:
Configuration Options
OpenAPI tags customization
Authorization policies
Custom response types
Default response handling
Anonymous access control
Global Response Types
The plugin includes default response mappings for common HTTP status codes:
401 Unauthorized:
ErrorResponse
403 Forbidden:
ErrorResponse
500 Internal Server Error:
ErrorResponse
400 Bad Request:
ValidationErrorResponse
Default response mapping can be customized
Last updated