mcab / hiber

API for Bat House SDP
GNU General Public License v3.0
0 stars 1 forks source link

Expose House (and others) over API #29

Closed mcab closed 5 years ago

mcab commented 5 years ago

Seems like this requires a lot of knowledge about serialization.

mcab commented 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.

mcab commented 5 years ago

HouseEnvironmentFeatures got a ViewSet, but the problem is routing properly for it.

We need to be able to:

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.