Add view helpers
Closed this issue · 1 comments
helrond commented
Is your feature request related to a problem? Please describe.
Many of the views in microservices use common patterns and methods.
Describe the solution you'd like
- Review views comprehensively to decipher common patterns and identify common methods
- Add additional context to this issue describing work to be done
- Add things to this library
- Replace code in apps with imports
helrond commented
Provide a BaseServiceView
which subclasses APIView
and does basic handling of service requests, including exceptions. Should expose a get_service_response
method for children, which is expected to return a tuple where the first item is a message and the second is a list of objects acted on.