Using Postman

From Izara Wiki
Revision as of 04:27, 10 October 2022 by Mint (talk | contribs)
Jump to navigation Jump to search

Connecting Postman to API Gateway

Connect API to Post man.

  1. AWS API Gateway: click name of service api
  2. Click stage /Test
    • and click export choose ..”Export as Swagger+Postman Extensions” copy code JSON
  3. Go to postman and paste in import/ Raw text/ continue.
    • a.
    • b.
  4. Now My Workspace connect to Api finished.


Access Token

web interface: https://d1gix48j5w3eur.cloudfront.net/buying

  1. Navbar > Sign in using mock account (suggested), if you signup with new user will get default role in basicUser, that mean you NOT allow to access all functions.
  2. F12 to see element
    • select tab >> Application
    • Session Storage > http... > access_token and copy these token to postman
  3. Go to postman and paste token to Authorization > TYPE: Bearer Token >>

[Token] ...

  1. For auth: UserLevel, need to send “targerUserId” in Params>Path Variables>

KEY: targetUserId VALUE: <targetUserId>

Email

  • Email use in web interface for get access token.
  1. basicUserA
    Email: success+basicUserTest@simulator.amazonses.com
    Password: Abc123456!
  2. verifiedUserA
    Email: success+verifiedUserTestA@simulator.amazonses.com
    Password: Abc123456!
  3. verifiedUserB
    Email: success+verifiedUserTestB@simulator.amazonses.com
    Password: Abc123456!
  4. superUserA
    Email: success+superUserTest@simulator.amazonses.com
    Password: Abc123456!