issues
search
contributte
/
apitte
:wrench: An opinionated and enjoyable API framework based on Nette Framework. Supporting content negotiation, debugging, middlewares, attributes, annotations and loving openapi/swagger.
https://contributte.org/packages/contributte/apitte/
MIT License
61
stars
37
forks
source link
Split IDecorator into IRequestDecorator, IResponseDecorator and IErrorDecorator
#90
Closed
mabar
closed
5 years ago
mabar
commented
5 years ago
Closes #85
split IDecorator into separate interfaces
removed null return for error decorator - error handling is inside core so there is no reason why error decorator cannot transform error into response
tag apitte.core.decorator is now optional and used only for priority definition
class could still implement all of these interfaces (and it now know what it should do)
but cannot define priority for each type separately, unfortunately
Closes #85