// baseurl of server @baseurl = http://localhost:15869 # @baseurl = http://103.1.12.221:15869 ### this line will get the variable login from login request, no need to copy/paste token anymore @token = {{login.response.body.$.token}} ### GET DIVISION GET {{baseurl}}/api/users/usertype ### REGISTER/SINGUP USER POST {{baseurl}}/api/users/register Content-Type: application/json { "fname": "Devien", "mname": "Valencia", "lname": "Acson", "age": 36, // male / female / na "gender": "male", "bdate": "1997-10-24", // creds "email": "devien.acson.20180515@gmail.com", "mobile": "09171825286", "passwd": "Pass@1234" } ### CONFIRM USER GET {{baseurl}}/api/users/confirm?token=641ba542d1d9cae10f72965d*id=1&email=ryan23montemayor@yahoo.com ### LOGIN # @name login POST {{baseurl}}/api/users/login Content-Type: application/json { "user": "devien.acson.20180515@gmail.com", "pass": "Pass@1234" } ### GET LOGEDIN USER GET {{baseurl}}/api/users/logedin Authorization: Bearer {{token}} ### LOGOUT // implement on FE, remove token on localstorage on browser // no need to call this API POST {{baseurl}}/api/users/logout Authorization: Bearer {{token}} ### UPDATE // only updated fields to be send // email and password is not allowed to change here PUT {{baseurl}}/api/users/update Authorization: Bearer {{token}} Content-Type: application/json { "age": 37, "mobile": "09496136582" } ### CHANGE PASSWORD // current and new password - please do confirm password on FE // please logout automatic the user on FE by calling logout on FE PUT {{baseurl}}/api/users/password Authorization: Bearer {{token}} Content-Type: application/json { "curpasswd": "052386", "newpasswd": "123456" } ### ADMIN GET ALL USER GET {{baseurl}}/api/admin/getall?page=1&size=20&search= Authorization: Bearer {{token}} ### ADMIN GET ONE USER GET {{baseurl}}/api/admin/getone?id=1034 Authorization: Bearer {{token}} ### ADMIN LOCK USER // id - id of the user // status = true | false PUT {{baseurl}}/api/admin/lock?id=1034&status=true Authorization: Bearer {{token}}