diff --git a/atlas_server/src/app.py b/atlas_server/src/app.py index 6278ac02f3e747aef241c0e54ed1ee364eb439d5..e8bd0ec45ae689afe3996d6979b226ff68871cf8 100644 --- a/atlas_server/src/app.py +++ b/atlas_server/src/app.py @@ -20,6 +20,7 @@ api = Api(app, project_namespace = api.namespace("projects", description="Operations to deal with projects") annotation_namespace = api.namespace("annotations", description="Operations to deal with annotations") +predictions_namespace = api.namespace("predictions", description="Operations to deal with predictions") # ----------------------------------- # Model definitions @@ -518,7 +519,7 @@ class AnnotationImportExport(Resource): } -@annotation_namespace.route("/<int:project_id>/tasks/<int:task_id>") +@predictions_namespace.route("/<int:project_id>/tasks/<int:task_id>") class PredictionAnnotationExport(Resource): @annotation_namespace.doc("Retrieve annotations based on predictions of a specific task") def get(self, project_id, task_id):