-
Notifications
You must be signed in to change notification settings - Fork 5
Accessing protected APIs in Swagger
Karthik Pillai edited this page Sep 29, 2021
·
5 revisions
Access the available endpoints at
http://localhost:8080/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config
account-resource -> POST /api/register
- Go to MySQL database and select all the users in table 'jhi_user'
- Copy the activation_key for the registered user
- Activate the user by going to Swagger
account-resource -> GET /api/activate
user-jwt-controller -> POST /api/authenticate
- Enter the username & password
- Send POST request
- Copy the JWT
- Move to top right corner of Swagger UI
- Click Authorize button & paste the JWT
- Click Authorize
- Now you will be able to access the protected API endpoints