Skip to main content

Module api_generator

Module api_generator 

Source
Expand description

CRUD API generator

This module generates CRUD endpoints for each entity, including:

  • GET /api/{entity} - List all (with pagination, filtering, sorting)
  • GET /api/{entity}/{id} - Get by ID
  • POST /api/{entity} - Create new
  • PUT /api/{entity}/{id} - Full update
  • PATCH /api/{entity}/{id} - Partial update
  • DELETE /api/{entity}/{id} - Delete
  • GET /api/{entity}/{id}/{relationship} - Get related entities

Structsยง

ApiEndpoint
API endpoint definition
ApiGenerator
API generator for creating CRUD endpoints