RockefellerArchiveCenter/asterism

Add view helpers

Closed this issue · 1 comments

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

  1. Review views comprehensively to decipher common patterns and identify common methods
  2. Add additional context to this issue describing work to be done
  3. Add things to this library
  4. Replace code in apps with imports

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.