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
commit e5bdc1438a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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()