Skip to content

CRUD Operations

APiGen generates full CRUD (Create, Read, Update, Delete) operations for your entities automatically.

Standard Endpoints

For an entity Product:

MethodEndpointDescription
GET/api/productsList with pagination, sorting, and filtering
GET/api/products/{id}Get single resource by ID
POST/api/productsCreate 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 page
  • sort: Sort field and direction (name,asc)

Released under the MIT License.