ashleygwilliams / ashleygwilliams.github.io

hi, i'm ashley. nice to meet you.
http://ashleygwilliams.github.io/
82 stars 20 forks source link

add static list of relations #6

Closed tkellen closed 9 years ago

tkellen commented 9 years ago

this is presently required because bookshelf does not provide any static analysis of models. it's also desirable because it allows the api creator to define relations that might be used for internal purposes that should not be accessible via the API.

tkellen commented 9 years ago

This is related to endpoints/endpoints#110.

tkellen commented 9 years ago

PS: I don't mind if you rebase out this commit so you don't have multiple contributors on your CV :p (unless you think that is a good thing)!

ashleygwilliams commented 9 years ago

no no, this is awesome. i'm collaborative :) thanks @tkellen

tkellen commented 9 years ago

:D i only added the static listing for the users model--you'll want to add those for the rest as well.