envelope-zero/backend

Move *Create structs to controller and give them a method to transform to the model

Closed this issue · 1 comments

By moving the *Create structs to the controllers, API versions have control over the attributes they expose for creation, enabling easy addition and removal of attributes.

The same could be done for the representation of existing records, furthering a clean separation between the models and the controllers.

This has been implemented with APIv3 first and is now standard.