Skip to content

RubikREST

RubikREST is a powerful library designed to create instant RESTful interfaces by connecting Rubik ORM to the Erlenmeyer framework.

With just a few lines of code, you can expose your Models as full-featured API endpoints with support for advanced filtering, pagination, sorting, and automatic Swagger documentation.

Key Features

  • 🚀 Automatic CRUD: Generates GET, POST, PATCH, and DELETE routes.
  • 🔍 Advanced Filters: Supports operators such as eq, gt, like, in, etc., via URL parameters.
  • 📄 Pagination and Sorting: Natively integrated.
  • Eager Loading: Load relationships using the ?with= parameter.
  • 🛡️ Security: Protection against Mass Assignment via $fillable and middleware support.
  • 📑 Swagger UI: Automatic generation of OpenAPI documentation.
  • 🌐 JS Client: Includes a lightweight JavaScript client for API consumption.