Step‐7: Test API using POSMAN - MyMoheS/mymohes-api GitHub Wiki

How to get the token

  1. [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

  1. [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:

  1. API endpoint
  2. username
  3. password