Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 920 Bytes

swagger_login.md

File metadata and controls

24 lines (13 loc) · 920 Bytes

How to authenticate on SwaggerUI

  1. Open SwaggerUI on your browser (e.g. http://localhost:3000), expand the Authentication endpoint and click Try it out:

drawing

  1. Edit the request body to contain the REST_API_USERNAME / REST_API_PASSWORD credentials from the .env file and click on Execute.

drawing

  1. Find the authorization header on response and copy the JWT token (that is everything after 'Bearer '):

drawing

  1. Scroll to top of page and click the Authorize button:

drawing

  1. Paste the JWT token from step 3, click Authorize and Close.

drawing


You are now authenticated and can use other API endpoints without getting error 401.