This is a prototype for the laboratory of analysis of water and food of the UTP.
npm install or yarn install
npm start or yarn start
url | method | description | params |
---|---|---|---|
/ | GET | Home page | |
/profile | GET | Return user data | |
/profile | PUT | Modifies user data | |
/users/register | GET | Page to register users | |
/users/register | POST | Creates a new user |
|
/users/admin | GET | Page with admin panel | |
/users/pending/approve | GET | Page to pending users for account approval | |
/users/accountApproval | PUT | Approval or rejection of an account | |
/users/pending/deactivate | GET | Page to users with account deactivation request | |
/users/deactivateAccount | PUT | Approval or rejection of account deactivation request | |
/users/:id/deactivateAccount | PUT | Request for deactivate account | |
/users/:id | PUT | Modifies user data | |
/users/:id | DELETE | Deactivate user account | |
/account/newPassword | GET | Request for new password | |
/account/emailRecovery | POST | Email is sent with instructions to recover the password | |
/account/recovery/:token | GET | Page with password change form | |
/account/recovery/:token | PUT | Save the new password |
|
/session/login | GET | Login page | |
/session/login | POST | Create a new session |
|
/session/logout | DELETE | Destroy a session | |
/quotation/new | GET | Page to crate quotation | |
/quotation/create | POST | Create a new quotation |
|
/quotation/search | GET | Search quotation page | |
/quotation/search | POST | Search a specific quotation |
|
/quotation/pending/approval | GET | Page to pending quotations for approval | |
/quotation/approval/:id | PUT | Approval or rejection of a quotation | |
/quotation/pending/delete | GET | Page to quotations with delete request | |
/quotation/:id/delete | PUT | Request for delete quotation | |
/quotation/delete/:id | DELETE | Delete a specific quotation | |
/quotation/:id | GET | Page for a specific quotation | |
/quotation/:id | PUT | Modifies a specific quotation |