Integration testing

Once the API Gateway is configured and integrated with Lambda, one can test it in sandbox mode.

Note that the function is not currently deployed or configured to receive triggers from the outside world. To expose the API to the outside world, it has to be deployed on something called the API Gateway Stage. We will explore that in future sections.

To test in the sandbox mode, you have to click on the Test link, as shown in the following screenshot:

The preceding screenshot shows the test of the positive flow of the API, invoking the Gateway with a request that has a string in the body with the value API GATEWAY. The response ...

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.