code-corps / deprecated-code-corps-rails-api

Rails API for Code Corps.
https://codecorps.org
MIT License
25 stars 15 forks source link

Added documentation for the SluggedRoutes API endpoint #477

Closed begedin closed 8 years ago

begedin commented 8 years ago

Closes #425

Since slugged routes have a polymorphic relationship to organizations and users via the owner field, this was a special case. I solved it by defining two possible responses for the get request. If anyone has a better idea, I'm all for it.

joshsmith commented 8 years ago

Some minor notes here. Let me know when it could use re-review.

joshsmith commented 8 years ago

Just pushed up changes to my suggestions. Merging now.