📝 Negotiate response renderer as soon as possible (#402)
I think that it would be fair not to do anything if we can't find a renderer for the response.
It is better than we do it right now, when we finish all the business logic, just to find out that we can't show a proper response.
We should move
response_negotiator call before the actual endpoint execution.Maybe here?
django-modern-rest/django_modern_rest/endpoint.py
Lines 148 to 150 in 697c348
We should also add a test case that endpoint logic is not executed if there's something wrong with the negotiation.
#enhancement #good_first_issue #help_wanted #django_modern_rest
sent via relator