List Implements
Retrieve all agricultural implements from the catalog with pagination and optional search filters. This is a public endpoint that does not require authentication.Endpoint
Query Parameters
Number of records per page (pagination limit)
Number of records to skip (pagination offset)
Page number (alternative to offset)
Field to sort by (e.g.,
implement_type, brand, power_requirement_hp)Sort order:
asc or descResponse
Returns a paginated list of implements with metadata.Response Schema
Indicates if the request was successful
Array of implement objects
Pagination metadata
Examples
Response Example (200 OK)
Advanced Filtering
Get Available Implements Only
To retrieve only implements withstatus: available, use the /api/implements/available endpoint:
Search with Filters
For advanced filtering by type, soil compatibility, and power requirements, use the/api/implements/search endpoint:
Error Responses
Internal Server Error (500)
Related Endpoints
Get Implement
Retrieve a specific implement by ID or search with filters
Create Implement
Add a new implement to the catalog (Admin only)
Update Implement
Modify an existing implement (Admin only)
Delete Implement
Remove an implement from the catalog (Admin only)
Implements are sorted by
implement_type and brand by default. Use the sort and order parameters to customize sorting.Implementation Notes
- Source:
src/routes/implement.routes.js:80- Route definition - Controller:
src/controllers/implementController.js:31-getAllImplementsfunction - Model:
src/models/Implement.js:5- Database query:SELECT * FROM implement ORDER BY implement_type, brand - Caching: This endpoint uses cache middleware with 24-hour TTL (86400 seconds)
- Public Access: No authentication required
