To check-in, we first need to verify and authorize the calling user, so no one else goes checking in to the room that you've waited so long for. You'll see this in the authorizer block. While the implementation of the authorizer itself is rudimentary, just having anything here makes the solution as a whole better.
code/Reservation/Reservation/serverless.yml
CheckIn:handler:src/infrastructure/adapters/web/CheckIn.handlerdescription:Check in to slotevents: - http:method:POSTpath:/CheckInauthorizer:name:AuthorizerresultTtlInSeconds:${self:custom.config.apiGatewayCachingTtlValue}identitySource:method.request.header.Authorizationtype:requestrequest:schemas:application/json:${file(schema/Id.validator.json)}
In the use case code, we will load the Slot DTO and pass it to the respective method.