dappi is a powerful tool designed to streamline backend API development by automatically generating controllers with CRUD endpoints for a given entity.
- Automatic Controller Generation: Controllers are automatically generated for CRUD operations and they offer:
- Filtering by any field
- Pagination
- Sorting
-
Create a .NET API Project, add nuget package
dotnet add package Codechem.Dappi.Generator --version 1.0.0
To create a model, define a class and apply the [CCController]
attribute to it. This will automatically generate a controller for the model.
Example:
[CCController]
public class Book
{
public string Name { get; set; }
public string Surname { get; set; }
}
After saving the file with any IDE, you run the app, and you should be able to access your CRUD endpoints section under /api/book/ url.