GET /api/jobs
Retrieve a list of all job opportunities in Dzaleka Refugee Camp.Query Parameters
This endpoint does not require any query parameters.Response Format
string
required
Status of the API response (“success” or “error”)
number
required
Total number of jobs returned
object
required
Container for the jobs data
array
required
Array of job objects
string
Unique identifier for the job
string
Collection name (“jobs”)
string
Job title
string
Hiring organization name
string
Job location (e.g., “Remote”, “Dzaleka”, “Remote / Dzaleka”)
string
Job type (e.g., “full-time”, “part-time”, “contract”, “internship”)
string
Job category (e.g., “business”, “technology”, “education”)
string
Date posted (YYYY-MM-DD)
string
Application deadline (YYYY-MM-DD)
string
Job status (“open”, “closed”, “filled”)
boolean
Whether the job is featured
string
Job description summary
array
Array of required skills
Error Responses
string
“error”
string
Error message description
string
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/jobs
Retrieve jobs data with optional metadata and statistics.Request Body
object
Response Format
Same as GET endpoint, with optional additional fields:object
Example Request
Example Response
Implementation
The Jobs API is implemented using thecreateGetHandler and createPostHandler utility functions from src/utils/api-utils.ts:118.
Source code: src/pages/api/jobs.ts:5