4. Test your API!

You are now complete and all thats left is to run your service locally, and then verify you can invoke it through the gateway provided URL.

Pre-check Verification

  • Ensure you have provisioned an API key for your account (done in lesson 2).

  • Ensure you activated token introspection API (done here)

  • Ensure you updated your API yaml to include your API token (done here)

  • Ensure you have your new URL generated by the gateway.

  • Ensure you have a valid access token representing the user. Go to the demo apps home page.

Postman

We provided a postman script, you can use to test this.

  1. Change the access token to your ory token

  2. Change the API key to your api key (see lesson 2)

  3. Change the gateway_url to match your URL you saw here.

Result of Running

You now have an API that can consume other APIs as well as create new products and services!

Last updated