slothful-crud
1.0.0-rc.3
dotnet add package slothful-crud --version 1.0.0-rc.3
NuGet\Install-Package slothful-crud -Version 1.0.0-rc.3
<PackageReference Include="slothful-crud" Version="1.0.0-rc.3" />
paket add slothful-crud --version 1.0.0-rc.3
#r "nuget: slothful-crud, 1.0.0-rc.3"
// Install slothful-crud as a Cake Addin #addin nuget:?package=slothful-crud&version=1.0.0-rc.3&prerelease // Install slothful-crud as a Cake Tool #tool nuget:?package=slothful-crud&version=1.0.0-rc.3&prerelease
<div align="center"> <img src="docs/assets/slothful-api.jpg" alt="slothful-api logo"> </div>
Slothful CRUD
Slothful CRUD is a library designed to streamline the creation of CRUD endpoints effortlessly. By implementing the necessary interfaces in domain classes, you can quickly register the library and generate RESTful endpoints. Simplify your API development with Slothful CRUD.
Documentation
Get started by reading through the documentation.
Getting Started
Follow these steps to integrate Slothful CRUD into your project:
- Configure Your Domain Classes:
Create domain classes representing your data entities. Implement the appropriate interfaces for CRUD operations.
- Register the Library:
Integrate Slothful API by registering it in your application.
- Run Your Application:
Start your application to automatically generate RESTful endpoints based on your domain classes.
Configuration
The base configuration class that defines shared settings for all other configuration classes:
- ExposeAllNestedProperties (
bool
): Set totrue
to expose all nested properties via the API. Useful for debugging or gaining granular control over nested data. - IsAuthorizationEnable (
bool
): Determines whether authorization checks are enabled. If set totrue
, the policies listed inPolicyNames
are applied. - PolicyNames (
string[]
): An array of policy names to apply for authorization.
EndpointConfiguration
(inherits Configuration
)
Defines properties specific to API endpoints:
- IsEnable (
bool
): Determines if the endpoint is enabled.
EntityConfiguration
(inherits Configuration
)
Provides settings specific to entity management:
- SortProperty (
string
): Specifies the property name used to sort entities. - FilterProperty (
string
): Identifies the property name used to filter entities. - KeyProperty (
string
): Defines the primary key property name for identifying entities. - KeyPropertyType (
Type
): Indicates the type of the primary key property (e.g.,int
,string
). - UpdateMethod (
string
): Specifies the method used to update entities. - HasValidation (
bool
): Enables or disables validation for entities to ensure compliance with business rules.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- FluentValidation (>= 11.9.1)
- Microsoft.EntityFrameworkCore (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Microsoft.OpenApi (>= 1.4.3)
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 |
---|---|---|
1.0.0-rc.3 | 62 | 6/8/2024 |
1.0.0-rc.2 | 54 | 6/8/2024 |
1.0.0-rc.1 | 67 | 5/24/2024 |