Add resource_index/ontologies endpoint.