API key

As seen in the previous section, we will set up an API Key and a usage plan to control access to the API. After this setup, there has to be header that has to be set by the app. It takes the following form:

x-api-key:YOUR_API_KEY_VALUE

The YOUR_API_KEY_VALUE will be sourced from the console or the output of the orchestration framework like serverless.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.