rest api and local search