open-taffeta
open-taffeta copied to clipboard
Raspberry Pi-hosted website controlling access to a building
Externalize the token duration in the config file. Values can be: - a number (ex. 180) - infinite (ex. 0) - automatic renewed upon usage (ex. "+30")
``` $ curl -X POST https://host/signup -H "Content-Type: application/json" -d '{"email":"[email protected]", "password":"hey"}' ``` response has `Content-Type: application/json` but payload is weird ``` {"detail":"Data validation error: ValidationErrors(\n {\n \"password\": Field(\n [\n...
The story is more or less this: - figure out a file format to describe the week (I was thinking to also using the `.ical` format, so timetable can be...
- [ ] delete user button - [ ] delete user, userauth and roles - [ ] admins cannot be deleted (because I say so) The endpoint should be accessible...
Endpoint to reset the pwd Passwords cannot be recovered. The workflow to reset the pwd could be: - a POST /reset/pwd (sth like that) - backend creates a temporary token...
It looks like `HTTP 400` are now legacy and wrong practice use for API database response. API now mostly answer `HTTP 2XX` if the request succeed Indeed it's not a...
Need a `/doors` endpoints : - `GET` : Get doors list - `POST` : Create a new door Also migrate `/door/:door_id` to `/doors/:door_id` : - `DELETE` : Delete the door...
- [ ] Replace all `.expect()` statements in the src/routes - [ ] Add useful logging on errors - [ ] Always return 20x, add error detail in response body
ex. ``` curl "http://localhost:8000/signup" -H "content-type: application/json -d '{"username": "tester", "fld-not-exists": "qwerty"}' ``` Try to have Rocket return a 400