Closed mcab closed 5 years ago
In order for this to work, we probably will need another Serializer for HouseInformation.
This can be used as an optional parameter passed with the House one, or standalone on a different path (house/information
?)
Something of the sorts. For now, we have it at least Authenticated, and need to have a Permission that is AuthenticatedAndOwnerOrAdmin or something like that.
HouseEnvironmentFeatures
got a ViewSet, but the problem is routing properly for it.
We need to be able to:
HouseEnvironmentFeatureViewSet
, probably GET /api/v1/house/{pk}/environment
)/api/v1/house/{pk}/environment
to create a HouseEnvironmentFeatures
, tied to that PK./api/v1/house/{house pk}/environment/{environment pk}
with some revision add-on so that we can view / edit certain traits.Maybe we don't even need to implement DELETE. Ideally, we keep the records, so that we can map changes to the environment / physical bathouse.
We want to probably do this by nesting ViewSets [1] [2]. This then extends to physical features, and we can then start mocking out what Flightplan expects.
Seems like this requires a lot of knowledge about serialization.