Import solution collection into Postman - Research Service Workbench on AWS

Import solution collection into Postman

You need to configure Postman or another API client of your choice to onboard a hosting account. Follow these instructions to import the solution's collection into Postman.

  1. Create a Postman environment.

  2. Name your environment variables:

    1. API_URL

      The value should be the APIGatewayAPIEndpoint.

    2. ACCESS_TOKEN

      The value should be the accessToken.

    3. CSRF_COOKIE

      The value should be the csrfCookie.

    4. CSRF_TOKEN

      The value should be the csrfToken.

  3. Import the solution's POSTMAN collection. For more information, see Importing data into Postman.

  4. Assign a value to the terminatedEnvId parameter in the ./integration-tests/config/<STAGE>.yaml file.

    1. Create a new Amazon SageMaker environment and wait for COMPLETED status.

    2. Note the id value from the response.

    3. Use the new environment's id to stop the environment and wait for STOPPED status.

    4. Use the new environment's id to terminate the environment.

    5. In the ./integration-tests/config directory, assign the id of the new environment to the terminatedEnvId in the <stage>.yaml file.