def get(self, place_group_id: str, ds_id: str): query_expr = self.params.get_query_argument("query", None) comb_op = self.params.get_query_argument("comb", "and") response = find_dataset_places(self.service_context, place_group_id, ds_id, query_expr=query_expr, comb_op=comb_op) self.set_header('Content-Type', "application/json") self.write(json.dumps(response, indent=2))
def test_find_dataset_features(self): ctx = new_test_service_context() places = find_dataset_places(ctx, "all", "demo", "http://localhost:8080") self._assertPlaceGroup(places, 3, {'0', '1', '2'})