F.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.
  1. Open the Postman client and click Create a request.
  2. Select the request type as GET and enter the request URL in the following format:
    http://[servername]:[portnumber]/[context]/rest-api/auth/v1/token

    Figure F-7 Request


    Request

  3. Select the Authorization menu and then select the TYPE as Basic Auth.

    Figure F-8 Authorization


    Authorization

  4. 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.

  5. Click Send. The token is displayed in the Response field.

    Figure F-9 Response


    Response