Open bunsenmcdubbs opened 6 years ago
If/when this is approved, this document will get added to the repository (/api.md
).
This saving / loading of the state is only for having only one user logged in at a time right?
@illegalprime Yes you are correct, the issue has been edited to reflect this.
Routes
These routes include some changes from the original API plan but maintains the same functionality (and adds a bit more as well), just reorganized under more RESTful paths.
Routes
/user
PUT
{email: <string>, password: <string>, org_id: <id>}
{token: <JWT>}
/user/login
POST
{email: <string>, password: <string>}
{token: <JWT>}
/user/{id}/state
POST
{state: <state obj>}
{status: "ok"}
/user/{id}/state
GET
{state: <state>}
/participant
GET
{participants: []<participant>}
/participant/search?q=<query>
GET
{participants: []<participant>}
/participant/flag
PUT
{participant_ids: []<id>}
{status: "ok"}
/participant/flag
DELETE
{participant_ids: []<id>}
{status: "ok"}
/participant/flagged
GET
{participants: []<participant>}
/participant/{id}/flag
POST
{status: "ok"}
/participant/{id}/flag
DELETE
{status: "ok"}
/participant/{id}/resume
GET
{url: <url>}
Types
{ id: <id>, email: <string>, resume: <url>, flagged: <bool> }