A restful web application for real-time typeahead and autocomplete