Loading topic
sam). You should also know the handler and routes from earlier chapters. Here you will describe the whole backend in one file, so you can deploy it repeatedly and get the s4 min readAWS::Serverless::HttpApi and a Lambda function, as in the previous chapter. It also assumes the4 min readItemsApi and ItemsFunction from the SAM chapter, and that you know HTTP headers and basic JavaScript fetch. By the end you will be able to configure CORS on an HTTP API, test preflight requests with curl, and diagnose the usual browser errors.5 min readItemsFunction handler at three levels: plain unit tests, SAM's local emulati4 min readhttps://abc123.execute-api.us-east-1.amazonaws.com. That URL works, but clients should not depend on it. It exposes the API ID, it changes if you recreate the API, and it gives you no way to move traffic between APIs without breaking callers. A custom doma6 min read