AncientSwordRage / nWoD-db

Web app for creating new world of darkness characters and browsing character data (Mage spells, vampire disciplines merits, etc)
1 stars 0 forks source link

URLs the web-app uses are not defined #8

Open AncientSwordRage opened 9 years ago

AncientSwordRage commented 9 years ago

We should figure out what urls we want.

First draft below: web uml

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

http://yuml.me/edit/1415b9be

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

AncientSwordRage commented 9 years ago

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