I would like implement "Item" (based on models) route like:
/api/houses/128/rooms/42/surface
Where my view is automatically provided with the House 128 and Room 42 (where Room 42 is linked to House 128 in database, else 404). Flask Potion is able to manage route like this ? Or i need to write a new Route class - if it is possible - like flask_potion.routes.ItemRoute ?
Potion is designed so that it only has exactly one endpoint for each type of resource, independent from any relationships the resource may have; all resources are top-level resources.
Hello,
I would like implement "Item" (based on models) route like:
Where my view is automatically provided with the House 128 and Room 42 (where Room 42 is linked to House 128 in database, else 404). Flask Potion is able to manage route like this ? Or i need to write a new Route class - if it is possible - like
flask_potion.routes.ItemRoute
?Thank's, Bux.