Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 11
Brojowski edited this page Jan 16, 2018
·
10 revisions
POST/users{"email": String,"password": String,"client": String}HTTP/1.1201Created{"key": String,"token": String,"role": String,"refresh": String,"expires": String}POST/users/quickAuth->admin,staff{"name": String,// full name"email": String,// email address"phone": String// phone number}HTTP/1.1201Created{"_id": String,"email": String,"role": String,"created": Date,"application": {"name": String,"school": String,"phone": String,"shirt": String,"demographic": Boolean,"first": Boolean,"dietary": String,"year": String,"age": Number,"gender": String,"major": String,"conduct": Boolean,"travel": Boolean,"waiver": Boolean,"status": String,"going": Boolean,"checked": Boolean,"created": Date,"door": Boolean}}POST/users/token{"email": String,"password": String}HTTP/1.1201Created{"key": String,"token": String,"role": String}DELETE/users/tokenAuthHTTP/1.1200OKGET/usersAuth->admin,staffHTTP/1.1200OK{"users": [{"_id": String,"email": String,"role": String,"created": Date}]}GET/users/:idAuth->admin,staffHTTP/1.1200OK{"_id": String,"email": String,"role": String,"created": Date}PATCH/usersAuth{"email": String,"password": String}HTTP/1.1200OK{"_id": String,"email": String}PATCH/users/:idAuth->admin{"role": 'attendee'|'staff'|'admin'}HTTP/1.1200OK{"_id": String,"email": String,"role": String,"created": String}DELETE/users/:idAuth->adminHTTP/1.1200OK{"_id": String}This will send an email with a randomly generated new password to the user
POST/users/reset{"email": String}HTTP/1.1200OK{}