Step‐7: Test API using POSMAN - MyMoheS/mymohes-api GitHub Wiki
How to get the token
- [yourIP:yourPort]/api/auth/token (POST)
- Select Authorization --> Basic Auth
- Enter username: zhamri
- Enter password: abc1234
- Click Send (you will receive JWT token)
How to test using token
- [yourIP:yourPort]/test/salam (GET)
- Select Authorization --> Bearer Token
- Enter JWT token
- Click Send (you will see "Assalamualaikum !!!")
After successful, then inform KPT of the:
- API endpoint
- username
- password