Same as with checking in, for checking it we need the authorization of the user and call.
code/Reservation/Reservation/serverless.yml
CheckOut:handler:src/infrastructure/adapters/web/CheckOut.handlerdescription:Check out from slotevents: - http:method:POSTpath:/CheckOutauthorizer:name:AuthorizerresultTtlInSeconds:${self:custom.config.apiGatewayCachingTtlValue}identitySource:method.request.header.Authorizationtype:requestrequest:schemas:application/json:${file(schema/Id.validator.json)}
The use case itself is practically copy-paste from the check-in case.