pub fn create_attribute_routes(service: Arc<AttributeService>) -> RouterExpand description
Create Axum router with all 16 Backbone endpoints for Attribute.
§Routes
| Method | Path | Description |
|---|---|---|
| GET | /attributes | List with pagination |
| POST | /attributes | Create new |
| GET | /attributes/:id | Get by ID |
| PUT | /attributes/:id | Full update |
| PATCH | /attributes/:id | Partial update |
| DELETE | /attributes/:id | Soft delete |
| POST | /attributes/bulk | Bulk create |
| POST | /attributes/upsert | Upsert |
| GET | /attributes/trash | List deleted |
| POST | /attributes/:id/restore | Restore |
| DELETE | /attributes/empty | Empty trash |
| GET | /attributes/:id/deleted | Get deleted by ID |
| DELETE | /attributes/trash/:id | Permanent delete from trash |
| GET | /attributes/count | Count active entities |
| GET | /attributes/trash/count | Count deleted entities |
§Example
let service = Arc::new(AttributeService::with_repository(repository));
let router = create_attribute_routes(service);