DFR Backend API Routes
API is running in development mode on port 3001.
Tender Routes (Base path: /api/tender)
- GET /tender: Get all/paginated tenders (Default 20). Query options:
?limit=X or ?limit=all.
Full Path: /api/tender/tender
- GET /id/:tenderId: Get a single tender by its unique ID.
Full Path: /api/tender/id/TDR001
- GET /highlighted: Get all highlighted tenders.
Full Path: /api/tender/highlighted
- GET /filetype/:fileType: Get tenders filtered by file type.
Full Path: /api/tender/filetype/pdf
Event Routes (Base path: /api/events)
- GET /events: Get all events.
Full Path: /api/events
- GET /events/:eventId: Get a single event by its ID.
Full Path: /api/events/EVT001
- POST /events: Create a new event.
Full Path: /api/events
- PUT /events/:eventId: Update an existing event.
Full Path: /api/events/EVT001
- DELETE /events/:eventId: Delete an event.
Full Path: /api/events/EVT001