Get all users : GET http://localhost:5000/users
Signup user : POST http://localhost:5000/signup
Login user : POST http://localhost:5000/login
Get a user : GET http://localhost:5000/:id
Delete a user : DELETE http://localhost:5000/users/:id
Logout : GET http://localhost:5000/logout
Get profile : GET http://localhost:5000/me
Activate Account : POST http://localhost:5000/email-activate
Remove Account : POST http://localhost:5000/removeAccount
Delete Random Code : POST http://localhost:5000/deleteCode
Forgot Password : POST http://localhost:5000/forgotPassword
Reset Password : PUT http://localhost:5000/resetPassword
Sort All Users : GET http://localhost:5000/users/sort
Check Token : PUT http://localhost:5000/users/:id/checkToken
Get all logins : GET http://localhost:5000/logins
Get a login : GET http://localhost:5000/logins/:id
Create login : POST http://localhost:5000/logins
Update login : PUT http://localhost:5000/logins/:id
Delete login : DELETE http://localhost:5000/logins/:id
Increase Counter : PUT http://localhost:5000/logins/:id/increaseCounter
Show Counter : GET http://localhost:5000/logins/:id/showCounter
Get Point : GET http://localhost:5000/points/:id/Point
Requests | Responses | |
---|---|---|
Signup | name,email,password | message, register: true, rToken |
Activate Account | email, randomCodeReq | success: true |
Delete Random Code | success: true | |
Login | email,password | success: true,token,id,counter,unicID |
Check Token | myRefreshToken | success: true, decoded |
Get Profile | name,email,password | success: true, data: user |
Forgot Password | message | |
Reset Password | forgotCode,email,password | success: true |
Logout | success: true, data: {} | |
Remove Account | success: true | |
Get All User | success: true, count, data | |
Get A User | success: true, data: user | |
Delete A User | success: true, data: {} | |
Sort All Users | data: {ids,names,points,imageUrls} | |
Create Login | user | success: true, data: login |
Get All Logins | success: true, data: logins | |
Get A Login | success: true | |
Update Login | success: true, data: login | |
Delete Login | success: true, data: {} | |
Increase Counter | loginDate | success: true, data: logins |
Show Counter | success: true, data: login | |
Get Point | email, randomCodeReq | success: true, data: points |
MIT License
© Copyright 2021 Back-to-Life
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.