codeforanchorage / ancbkn

api for anchorage data
1 stars 1 forks source link

Get Crimes with Parameters #4

Open boonrs opened 11 years ago

boonrs commented 11 years ago

Add an action to the crime controller that takes optional parameters and returns data based on:

carterbancroft commented 11 years ago

Any thoughts on how a date range should look in the URL params? Perhaps just have start_date and end_date url params and if one is nil it's everything after/before, respectively?

boonrs commented 10 years ago

I like the idea of two params: start_date and end_date, including your idea for default behavior (start_date nil, then everything before the end_date etc).