Open justinmk3 opened 2 years ago
+1 on this. Ad-hoc invokes are good when I have a known payload I want to inspect, but sometimes I just want to fire up curl or Postman and make a bunch of requests against a running endpoint.
If it helps, I would like to respectfully +1 this as well.
Problem
When local invoking a APIGateway Lambda, the Toolkit always started the local api only for the lifetime of the request or debug session. Customers may want the API to stay running so they can make other requests (for example via
curl
, postman, vscode-restclient, ...).Use cases
curl
, ...) to send requests to the local API endpoint.Expected behavior
AWS: Start Local API
command to start a local API.AWS: Start Local API
AWS: Stop Local API
Stop
Copy URL
Send request
(?)Attach to an already-running local API
Requested in https://github.com/aws/aws-toolkit-vscode/issues/2455#issuecomment-1085024260 :
sam local start-api
endpoint is already running... :invokeTarget.type = "api"
variant:logicalId
,api
,payload
AWS: Debug Local API
to attach to an already runningstart-api
docker ps
?) ?curl
or a REST/HTTP client...