implemented RestApiCypherImpl and changed the indexing API