CRUD Operations
APiGen generates full CRUD (Create, Read, Update, Delete) operations for your entities automatically.
Standard Endpoints
For an entity Product:
| Method | Endpoint | Description |
|---|---|---|
GET | /api/products | List with pagination, sorting, and filtering |
GET | /api/products/{id} | Get single resource by ID |
POST | /api/products | Create new resource |
PUT | /api/products/{id} | Full update |
PATCH | /api/products/{id} | Partial update |
DELETE | /api/products/{id} | Soft delete (if enabled) or hard delete |
Filtering
APiGen provides a powerful filtering syntax:
eq: Equals (?name[eq]=Phone)like: Contains (?name[like]=ph)gt,lt: Range (?price[gt]=100)
Pagination
Standard pagination parameters:
page: Page number (0-based)size: Items per pagesort: Sort field and direction (name,asc)