fix: annotation update need use http put method and annotation-reply api doc parms wrong (#18891)
This commit is contained in:
parent
e3daef19e7
commit
e5bdc1438a
4 changed files with 43 additions and 55 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue