kiwix / mirrors-qa

Q/A tools for Kiwix Download Mirrors
GNU General Public License v3.0
1 stars 0 forks source link

Backend API #9

Closed rgaudin closed 3 months ago

rgaudin commented 4 months ago

Tentative list of endpoints we'd need at first. We mostly want CRUD on tests and authentication. API is restful JSON of course.

Endpoint Usage
POST /auth/authenticate Authenticate users (workers)
GET /tests List of tests from DB.
POST /tests Not needed, tests created by scheduler
GET /tests/:id Test entry details
PATCH /tests/:id for worker to update the test with status and/or results

GET /tests can be public. It must support pagination and filtering (worker, country, etc)