Add autocomplete api endpoint