-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
| Route | Method | Description | Request | Response |
|---|---|---|---|---|
/user |
PUT |
Create a new user | {email: <string>, password: <string>, org_id: <id>} |
{token: <JWT>} |
/user/login |
POST |
Login and authenticate | {email: <string>, password: <string>} |
{token: <JWT>} |
/user/{id}/state |
POST |
Save client state for the current user | {state: <state obj>} |
{status: "ok"} |
/user/{id}/state |
GET |
Get client state for the current user | - | {state: <state>} |
/participant |
GET |
Get all participants | - | {participants: []<participant>} |
/participant/search?q=<query> |
GET |
Search participants by keyword | Search keywords in url query | {participants: []<participant>} |
/participant/flag |
PUT |
Flag participants for the current user | {participant_ids: []<id>} |
{status: "ok"} |
/participant/flag |
DELETE |
Unflag participants for the current user | {participant_ids: []<id>} |
{status: "ok"} |
/participant/flagged |
GET |
Get all flagged participants for the current user | - | {participants: []<participant>} |
/participant/{id}/flag |
POST |
Flag participant for the current user | None | {status: "ok"} |
/participant/{id}/flag |
DELETE |
Unflag participant for the current user | None | {status: "ok"} |
/participant/{id}/resume |
GET |
Get url to view the participant's resume | - | {url: <url>} |
Types
| Name | Type |
|---|---|
| JWT | string |
| state | stringified JSON |
| id | integer |
| url | string |
| participant | { id: <id>, email: <string>, resume: <url>, flagged: <bool> } |