I want to test aws api gateway for each resource automatically. Currently I do it manually (choose API, choose resource, click test, insert data on request body). 1. Can I do it automatically? So when I have deployed, I able to know whether my api and resource work properly. 2. Inside the resource, I use lambda function that is connected to dynamo db. For example I create POST operation which is inserting data to dynamo db. Is it possible to check the data whether It is inserted successfully or not? Could anyone assist me on this? thanks
See: Use Postman to Test an API
Good luck!
If you're hoping to use the same test feature that the console provides, there is an API for it, which is in the CLI and SDKs: http://docs.aws.amazon.com/cli/latest/reference/apigateway/test-invoke-method.html
If you just want to be able to test the deployed API, I'd recommend having a deployment workflow using the Stages as environments (like dev, gamma, prod). You can take one deployment (one snapshot of the API) and first deploy it to the dev stage. Then you can update the other stages with that same deployment. In this case, you could use any HTTP client/tool you like to test the actual deployed API in a test framework like JUnit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With