fix: change delete app status code from 204 to 200 (#18398)
Co-authored-by: devxing <devxing@gmail.com> Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
c1559a7c8e
commit
136995d2a1
16 changed files with 19 additions and 19 deletions
|
|
@ -186,7 +186,7 @@ class AnnotationUpdateDeleteApi(Resource):
|
|||
app_id = str(app_id)
|
||||
annotation_id = str(annotation_id)
|
||||
AppAnnotationService.delete_app_annotation(app_id, annotation_id)
|
||||
return {"result": "success"}, 200
|
||||
return {"result": "success"}, 204
|
||||
|
||||
|
||||
class AnnotationBatchImportApi(Resource):
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ class TraceAppConfigApi(Resource):
|
|||
result = OpsService.delete_tracing_app_config(app_id=app_id, tracing_provider=args["tracing_provider"])
|
||||
if not result:
|
||||
raise TracingConfigNotExist()
|
||||
return {"result": "success"}
|
||||
return {"result": "success"}, 204
|
||||
except Exception as e:
|
||||
raise BadRequest(str(e))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue