Chris Mendez in AWS, APIs, SaaS, IaaS, PaaS

Basic Curl Commands for API Gateway

AWS's API Gateway is great for developers who need a simple API for their SaaS Services. When it comes to testing out your API, there are many great tools such as POSTMAN or PAW but sometimes all you really need is a few curl commands These are the three commands you need

Simple GET request.

curl https://xyz.region.amazonaws.com/stage/endpoint

Simple POST request with parameters.

curl -XPOST https://xyz.region.amazonaws.com/stage/endpoint -d { "arg1": "val1", "arg2": "val2" }