Documentation Index
Fetch the complete documentation index at: https://dos.dzaleka.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/services
Retrieve a list of all services and organizations available in Dzaleka Refugee Camp.Query Parameters
This endpoint does not require any query parameters.Response Format
Status of the API response (“success” or “error”)
Total number of services returned
Container for the services data
Array of service objects
Unique identifier for the service
Collection name (“services”)
Name of the service or organization
Service category (e.g., “Education”, “Legal Services”, “Technology”)
Detailed description of the service
URL to organization logo
Whether the service is featured
Whether the service is verified
Last update date (YYYY-MM-DD)
Error Responses
“error”
Error message description
Detailed error information
200- Success429- Rate limit exceeded (60 requests per minute)500- Internal server error
Rate Limiting
All API endpoints are rate-limited to 60 requests per minute per IP address. Rate limit headers are included in responses:X-RateLimit-Limit: Maximum requests per windowX-RateLimit-Remaining: Remaining requests in current windowX-RateLimit-Reset: Timestamp when the rate limit resetsRetry-After: Seconds to wait before retrying (only on 429 responses)
Example Request
Example Response
POST /api/services
Retrieve services data with optional metadata and statistics.Request Body
Response Format
Same as GET endpoint, with optional additional fields:Example Request
Example Response
Implementation
The Services API is implemented using thecreateGetHandler and createPostHandler utility functions from src/utils/api-utils.ts:118.
Source code: src/pages/api/services.ts:5