Skip to main content

STANDARD_ENDPOINTS

Constant STANDARD_ENDPOINTS 

Source
pub const STANDARD_ENDPOINTS: [&str; 11];
Expand description

The 11 standard Backbone endpoints that are auto-generated for each entity:

  1. GET /api/v1/{collection} - List (paginated, filtered, sorted)
  2. POST /api/v1/{collection} - Create
  3. GET /api/v1/{collection}/:id - Get by ID
  4. PUT /api/v1/{collection}/:id - Full update
  5. PATCH /api/v1/{collection}/:id - Partial update
  6. DELETE /api/v1/{collection}/:id - Soft delete
  7. POST /api/v1/{collection}/bulk - Bulk create
  8. POST /api/v1/{collection}/upsert - Upsert
  9. GET /api/v1/{collection}/trash - List deleted
  10. POST /api/v1/{collection}/:id/restore - Restore
  11. DELETE /api/v1/{collection}/empty - Empty trash