codeforamerica / cfapi

The Code for America API. Tracks and motivates activity and participation across the civic technology movement.
http://codeforamerica.org/api
MIT License
113 stars 52 forks source link

Fix case sensitive url parameters #297

Closed tmaybe closed 7 years ago

tmaybe commented 8 years ago

Fixes the organization name needing to be case sensitive when passed as part of a URL. When this is merged, http://codeforamerica.org/api/organizations/code-for-america will work exactly the same as http://codeforamerica.org/api/organizations/Code-for-America

Closes #292

tmaybe commented 8 years ago

This is now up on staging to test:

http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/events http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/upcoming_events http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/past_events http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/events/rsvps http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/stories http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/projects http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/issues http://cfapi-staging.herokuapp.com/api/organizations/code-for-san-francisco/attendance

ondrae commented 7 years ago

Sorry man, this never got merged and I want to clean up the repo a bit. If we ever return to this than we can reopen.