contributte / apitte

:wrench: An opinionated and enjoyable API framework based on Nette Framework. Supporting content negotiation, debugging, middlewares, attributes, annotations and loving openapi/swagger.

Home Page:https://contributte.org/packages/contributte/apitte/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decorators improvements

mabar opened this issue · comments

  • split into 3 interfaces (RequestDecorator, ResponseDecorator, ErrorDecorator), drop decorator type tag in DI (only priority could be defined if needed)
  • if an error decorator return null then next in a row should be tried
  • request decorator accept only request
  • request and response decorators should be able to throw EarlyReturnResponseException (and error decorator maybe too?)