J.3 Generate Token
After the password is generated, you can generate the token. To generate the token, open
your API client and follow these steps:
Note:
- You may use the desktop version of the Postman client to perform these steps. Postman is an open-source, collaborative platform for API development. For more information, see Postman Docs.
- You can also use any other API client, such as cURL. For more information, see REST APIs for Oracle Database.
- Open the Postman client and click Create a request.
- Select the request type as GET
and enter the request URL in the following format:
##APP_URL##/rest-api/auth/v1/token
Figure J-7 Request
- Select the Authorization menu and then select the TYPE as Basic Auth.
- Enter the username and password.
The username is the value generated for the STP_ACC_NM attribute and the password is the value generated for the STP_ACC_TKN attribute.
- Click Send. The token is
displayed in the Response field.
Figure J-8 Response