Open AncientSwordRage opened 9 years ago
I think drop the mages subroute. They are still characters and it's still a character id rather than a mage id. To view all mages we can query characters (I.e. /characters?type=mage) On 17 Feb 2015 14:49, "AncientSwordRage" notifications@github.com wrote:
We should figure out what urls we want.
First draft below: [image: web uml] https://cloud.githubusercontent.com/assets/5961746/6229925/6c023b6a-b6b3-11e4-964d-26465f6d673f.png
localhost:8000/ : Lists summary of users and character (and books?), with like maybe stats etc localhost:8000/characters : Lists all characters, paginated, with stats (#characters etc?)...divided by type? localhost:8000/characters/mages : Lists all mages localhost:8000/characters/mages/#id : Lists the mage with #id in character sheet format. localhost:8000/characters/mages/#id/<spells,books,etc.>: Lists extra detail on that character localhost:8000/characters/mages/<spells, books, etc.>: Lists all those things subset by mage
— Reply to this email directly or view it on GitHub https://github.com/AncientSwordRage/nWoD-db/issues/8.
I'm considering reworking the way models, and thus characters are set up. I'll probably add it as an issue at some point, but that would allow the querying you mention above. The way this works in DRF is covered here
We should figure out what urls we want.
First draft below:
http://yuml.me/edit/1415b9be