fix: annotation update need use http put method and annotation-reply api doc parms wrong (#18891)

This commit is contained in:
小马哥
2025-04-27 16:13:36 +08:00
committed by GitHub
parent e3daef19e7
commit e5bdc1438a
4 changed files with 43 additions and 55 deletions

View File

@@ -79,7 +79,7 @@ class AnnotationListApi(Resource):
class AnnotationUpdateDeleteApi(Resource):
@validate_app_token(fetch_user_arg=FetchUserArg(fetch_from=WhereisUserArg.JSON))
@marshal_with(annotation_fields)
def post(self, app_model: App, end_user: EndUser, annotation_id):
def put(self, app_model: App, end_user: EndUser, annotation_id):
if not current_user.is_editor:
raise Forbidden()