smartchicago/chicago-early-learning — pull request #182 by CloudNiner (2013-07-15 14:44:54+00:00)
Title: Portal Autocomplete backend

Add views that display json for matching neighborhoods and schools when provided a partial string name to match on.

API:
+ /autocomplete/schools//
+ /autocomplete/neighborhoods//

Ex: /autocomplete/schools/and/
Result:

{
"response": [
"CYC Roseland Head Start collaboration",
"Englewood Freidheim Child and Family Center",
"Fairyland Nursery School",
"Little Hands Child Creative Center",
"Little Tykes Preschool and Kindergarten",
"St Margaret of Scotland",
"University of Chicago- North Kenwood Oakland",
"University of Chicago- North Kenwood Oakland"
]
}

Constructive critcism welcome on this pull request, particularly the url structure and if there is a more elegant way to do that and merging the two urls into one view handler.