// 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}} ### REGISTER/SINGUP USER POST {{baseurl}}/api/internalUser/register Content-Type: application/json { "email_address":"devien.acson.20180515@gmail.com", "mobile_number":"09171825286", "password":"Pass1234" } ### CONFIRM USER POST {{baseurl}}/api/internalUser/confirm?account_code_id=3&email_address=devien.acson.20180515@gmail.com"&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ODcsImVtYWlsIjoiZGV2aWVuLmFjc29uLjIwMTgwNTE1QGdtYWlsLmNvbSIsImlhdCI6MTc0Mjg4NTk3NywiZXhwIjoxNzQyOTcyMzc3fQ.FpSnVrTUneJEjKexbUXA4zQMfPGUAX5OcvmK0jaoVEE ### LOGIN # @name login POST {{baseurl}}/api/internalUser/login Content-Type: application/json { "user":"devien.acson.20180515@gmail.com", "pass":"Pass1234" } ### GET LOGEDIN USER GET {{baseurl}}/api/internalUser/logedin Authorization: Bearer {{token}} ### LOGOUT // implement on FE, remove token on localstorage on browser // no need to call this API POST {{baseurl}}/api/internalUser/logout Authorization: Bearer {{token}} ### UPDATE // only updated fields to be send // email and password is not allowed to change here PUT {{baseurl}}/api/internalUser/update Authorization: Bearer {{token}} Content-Type: application/json { "login_email":"kimas@mobilemoney.ph", "login_mobile_number":"091223232219" } ### 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/internalUser/password Authorization: Bearer {{token}} Content-Type: application/json { "curpasswd": "pass221133", "newpasswd": "123456" } ### ADMIN GET ALL customerGetAll GET {{baseurl}}/api/custmerAdmin/customerGetAll?page=1&size=20&search= Authorization: Bearer {{token}} ### ADMIN GET ONE customerGetOne GET {{baseurl}}/api/custmerAdmin/getone?account_id=1016 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}}