Get All Costings
Get all costings with filtering, sorting, and pagination.
Pagination: Database-level pagination for optimal performance.
Standard Operations:
- Pagination:
?page=1&limit=10 - Filtering:
?status=Draft - Sorting:
?sort=-created_at(newest first) or?sort=+status - Search:
?search=CS-2024
Examples:
GET /costings # All costings, page 1
GET /costings?status=Draft # Only drafts
GET /costings?sort=-created_at # Newest first
GET /costings?sort=+status # Sort by status A-Z
GET /costings?page=2&limit=20 # Page 2, 20 per page
GET /costings?search=CS-2024 # Search for "CS-2024"
Response Format:
{
"data": [...],
"pagination": {
"page": 1,
"limit": 10,
"total": 45,
"totalPages": 5,
"hasNext": true,
"hasPrev": false
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
Query Parameters
Page number (starts at 1)
x >= 1Items per page (max 100)
1 <= x <= 100Filter by status: Draft, Under Review, Approved
Sort field with direction prefix. Use - for descending, + for ascending. Examples: -created_at, +status
Search term (searches document ID)
2Response
Successful Response
Paginated response for costings list endpoint. Follows API_STANDARDS.md pagination format.
Pagination metadata following API standards.
Attributes: page: Current page number (1-indexed) limit: Items per page total: Total number of items matching query totalPages: Total number of pages hasNext: Whether there is a next page hasPrev: Whether there is a previous page