From 43ce9c668ccd34675d68241cd1d6d8afd262a121 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 26 Jun 2025 14:11:29 +0300 Subject: Remove add/delete case attributes end-points. Signed-off-by: Munyoki Kilyungi --- gn3/api/case_attributes.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'gn3/api/case_attributes.py') diff --git a/gn3/api/case_attributes.py b/gn3/api/case_attributes.py index a0fee83..f5e2f92 100644 --- a/gn3/api/case_attributes.py +++ b/gn3/api/case_attributes.py @@ -468,24 +468,6 @@ def __reject_diff__(conn: Connection, return diff_filename -@caseattr.route("//add", methods=["POST"]) -@require_token -def add_case_attributes(inbredset_id: int, auth_token=None) -> Response: - """Add a new case attribute for `InbredSetId`.""" - required_access( - auth_token, inbredset_id, ("system:inbredset:create-case-attribute",)) - with database_connection(current_app.config["SQL_URI"]) as conn: # pylint: disable=[unused-variable] - raise NotImplementedError - - -@caseattr.route("//delete", methods=["POST"]) -@require_token -def delete_case_attributes(inbredset_id: int, auth_token=None) -> Response: - """Delete a case attribute from `InbredSetId`.""" - required_access( - auth_token, inbredset_id, ("system:inbredset:delete-case-attribute",)) - with database_connection(current_app.config["SQL_URI"]) as conn: # pylint: disable=[unused-variable] - raise NotImplementedError @caseattr.route("//edit", methods=["POST"]) -- cgit 1.4.1