- The handlers contract should be
Req->Publisher<R>
instead ofReq->R
- Add
HandlerWrapper
s registration inDefaultGateway.Builder
like:interface HandlerWrapper { <T extends Request<?, ?, ?, R>, R> wrap(Class<T> type, Function<Envelope<T>, R> handler); }
- Handle deserialization errors server side (bad json, bad types, etc...)
- Handle error responses in client
- Manage query parameters for all HTTP methods
- Cache inspection and request filtering strategies @see AuthorizationGateway
- Jackson
Request
deserialization withRestApiRegistry