diff --git a/docs/apidoc/esb/jobv3-confapis/job.yaml b/docs/apidoc/esb/jobv3-confapis/job.yaml index 2a67768868..426b43b619 100644 --- a/docs/apidoc/esb/jobv3-confapis/job.yaml +++ b/docs/apidoc/esb/jobv3-confapis/job.yaml @@ -336,22 +336,22 @@ name: update_public_script_basic label: 更新公共脚本基础信息 label_en: Update public script - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/update_public_script_basic/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/delete_public_script_version/ name: delete_public_script_version label: 删除公共脚本版本 label_en: Delete public script version - suggest_method: DELETE + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/delete_public_script_version/ - dest_http_method: DELETE + dest_http_method: POST - path: /v2/jobv3/create_public_script_version/ @@ -369,44 +369,44 @@ name: update_public_script_version label: 修改公共脚本版本 label_en: Update public script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/update_public_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/publish_public_script_version/ name: publish_public_script_version label: 发布公共脚本版本 label_en: Publish public script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/publish_public_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/disable_public_script_version/ name: disable_public_script_version label: 禁用公共脚本版本 label_en: Disable public script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/disable_public_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/delete_public_script/ name: delete_public_script label: 删除公共脚本 label_en: Delete public script - suggest_method: DELETE + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/delete_public_script/ - dest_http_method: DELETE + dest_http_method: POST - path: /v2/jobv3/create_script/ @@ -424,22 +424,22 @@ name: update_script_basic label: 更新脚本基础信息 label_en: Update script basic - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/update_script_basic/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/delete_script_version/ name: delete_script_version label: 删除脚本版本 label_en: Delete script version - suggest_method: DELETE + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/delete_script_version/ - dest_http_method: DELETE + dest_http_method: POST - path: /v2/jobv3/create_script_version/ @@ -457,42 +457,42 @@ name: update_script_version label: 修改脚本版本信息 label_en: Update script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/update_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/publish_script_version/ name: publish_script_version label: 发布脚本版本 label_en: Publish script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/publish_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/disable_script_version/ name: disable_script_version label: 禁用脚本版本 label_en: Disable script version - suggest_method: PUT + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/disable_script_version/ - dest_http_method: PUT + dest_http_method: POST - path: /v2/jobv3/delete_script/ name: delete_script label: 删除脚本 label_en: Delete script - suggest_method: DELETE + suggest_method: POST api_type: operate comp_codename: generic.v2.jobv3.job_component dest_path: /api/job/v3/job-manage/delete_script/ - dest_http_method: DELETE + dest_http_method: POST diff --git a/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbPublicScriptV3Resource.java b/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbPublicScriptV3Resource.java index 3a3dd94f6d..35503fc34c 100644 --- a/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbPublicScriptV3Resource.java +++ b/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbPublicScriptV3Resource.java @@ -44,10 +44,8 @@ import com.tencent.bk.job.manage.model.esb.v3.response.EsbScriptV3DTO; import com.tencent.bk.job.manage.model.esb.v3.response.EsbScriptVersionDetailV3DTO; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; @@ -124,42 +122,42 @@ EsbResp createPublicScriptVersion( EsbCreatePublicScriptVersionV3Req request ); - @DeleteMapping("/delete_public_script") + @PostMapping("/delete_public_script") EsbResp deletePublicScript( @RequestBody @Validated(Delete.class) EsbDeletePublicScriptV3Req request ); - @DeleteMapping("/delete_public_script_version") + @PostMapping("/delete_public_script_version") EsbResp deletePublicScriptVersion( @RequestBody @Validated(Delete.class) EsbDeletePublicScriptVersionV3Req request ); - @PutMapping("/disable_public_script_version") + @PostMapping("/disable_public_script_version") EsbResp disablePublicScriptVersion( @RequestBody @Validated(Update.class) EsbManagePublicScriptVersionV3Req request ); - @PutMapping("/publish_public_script_version") + @PostMapping("/publish_public_script_version") EsbResp publishPublicScriptVersion( @RequestBody @Validated(Update.class) EsbManagePublicScriptVersionV3Req request ); - @PutMapping("/update_public_script_basic") + @PostMapping("/update_public_script_basic") EsbResp updatePublicScriptBasic( @RequestBody @Validated(Update.class) EsbUpdatePublicScriptBasicV3Req request ); - @PutMapping("/update_public_script_version") + @PostMapping("/update_public_script_version") EsbResp updatePublicScriptVersion( @RequestBody @Validated(Update.class) diff --git a/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbScriptV3Resource.java b/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbScriptV3Resource.java index 9ee5392d8d..0f50b18582 100644 --- a/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbScriptV3Resource.java +++ b/src/backend/job-manage/api-job-manage/src/main/java/com/tencent/bk/job/manage/api/esb/v3/EsbScriptV3Resource.java @@ -44,10 +44,8 @@ import com.tencent.bk.job.manage.model.esb.v3.response.EsbScriptV3DTO; import com.tencent.bk.job.manage.model.esb.v3.response.EsbScriptVersionDetailV3DTO; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; @@ -133,42 +131,42 @@ EsbResp createScriptVersion( EsbCreateScriptVersionV3Req request ); - @DeleteMapping("/delete_script") + @PostMapping("/delete_script") EsbResp deleteScript( @RequestBody @Validated(Delete.class) EsbDeleteScriptV3Req request ); - @DeleteMapping("/delete_script_version") + @PostMapping("/delete_script_version") EsbResp deleteScriptVersion( @RequestBody @Validated(Delete.class) EsbDeleteScriptVersionV3Req request ); - @PutMapping("/disable_script_version") + @PostMapping("/disable_script_version") EsbResp disableScriptVersion( @RequestBody @Validated(Update.class) EsbManageScriptVersionV3Req request ); - @PutMapping("/publish_script_version") + @PostMapping("/publish_script_version") EsbResp publishScriptVersion( @RequestBody @Validated(Update.class) EsbManageScriptVersionV3Req request ); - @PutMapping("/update_script_basic") + @PostMapping("/update_script_basic") EsbResp updateScriptBasic( @RequestBody @Validated(Update.class) EsbUpdateScriptBasicV3Req request ); - @PutMapping("/update_script_version") + @PostMapping("/update_script_version") EsbResp updateScriptVersion( @RequestBody @Validated(Update.class)