[{"data":1,"prerenderedAt":54},["ShallowReactive",2],{"workflow-call-http-api":3},{"id":4,"title":5,"cleanup":6,"contributors":10,"deploy":12,"description":16,"diagram":17,"extension":18,"framework":19,"gitHub":20,"introBox":29,"level":34,"meta":35,"resources":36,"s3URL":42,"services":43,"simplicity":45,"stem":46,"testing":47,"type":51,"usecase":52,"videoId":28,"__hash__":53},"workflows\u002Fworkflows\u002Fcall-http-api.json","Call HTTP API",{"headline":7,"text":8},"Cleanup",[9],"1. Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fshing-lyu.json",{"text":13},[14,15],"sam build","sam deploy --guided","Call an HTTP\u002FHTTPS API and return the API response","\u002Fassets\u002Fimages\u002Fworkflows\u002Fcall-http-api.png","json","AWS SAM",{"template":21,"payloads":26},{"repoURL":22,"templateDir":23,"templateFile":24,"ASL":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fstep-functions-workflows-collection\u002Ftree\u002Fmain\u002Fcall-http-api\u002F","call-http-api","template.yaml","statemachine\u002Fstatemachine.asl.json",[27],{"headline":28,"payloadURL":28},"",{"headline":30,"text":31},"How it works",[32,33],"Make an HTTP\u002FHTTPS request to an external API and return the response.","The workflow takes an Axios (Node.js-based HTTP client) config as input and returns the HTTP status code, header, and response body in the `Payload` object.","100",{},{"headline":37,"bullets":38},"Additional resources",[39],{"text":40,"link":41},"Axios Documentation","https:\u002F\u002Faxios-http.com\u002Fdocs\u002Fapi_intro","https:\u002F\u002Fda-public-assets.s3.amazonaws.com\u002Fworkflows\u002Fcall-http-api\u002Fcloudformation.yml",[44],"lambda","1 - Fundamental","workflows\u002Fcall-http-api",{"headline":48,"text":49},"Testing",[50],"See the GitHub repo for detailed testing instructions.","Standard","APIs","d1_aT28KJkFA0IciS2BsoDA7L0QfwunioE8MTRSv6r8",1778846888836]