Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 脚本开放管理类API #2318 #2487

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions docs/apidoc/esb/jobv3-confapis/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand All @@ -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/
Expand All @@ -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

Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -124,42 +122,42 @@ EsbResp<EsbScriptVersionDetailV3DTO> 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<EsbScriptVersionDetailV3DTO> disablePublicScriptVersion(
@RequestBody
@Validated(Update.class)
EsbManagePublicScriptVersionV3Req request
);

@PutMapping("/publish_public_script_version")
@PostMapping("/publish_public_script_version")
EsbResp<EsbScriptVersionDetailV3DTO> publishPublicScriptVersion(
@RequestBody
@Validated(Update.class)
EsbManagePublicScriptVersionV3Req request
);

@PutMapping("/update_public_script_basic")
@PostMapping("/update_public_script_basic")
EsbResp<EsbScriptVersionDetailV3DTO> updatePublicScriptBasic(
@RequestBody
@Validated(Update.class)
EsbUpdatePublicScriptBasicV3Req request
);

@PutMapping("/update_public_script_version")
@PostMapping("/update_public_script_version")
EsbResp<EsbScriptVersionDetailV3DTO> updatePublicScriptVersion(
@RequestBody
@Validated(Update.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -133,42 +131,42 @@ EsbResp<EsbScriptVersionDetailV3DTO> 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<EsbScriptVersionDetailV3DTO> disableScriptVersion(
@RequestBody
@Validated(Update.class)
EsbManageScriptVersionV3Req request
);

@PutMapping("/publish_script_version")
@PostMapping("/publish_script_version")
EsbResp<EsbScriptVersionDetailV3DTO> publishScriptVersion(
@RequestBody
@Validated(Update.class)
EsbManageScriptVersionV3Req request
);

@PutMapping("/update_script_basic")
@PostMapping("/update_script_basic")
EsbResp<EsbScriptVersionDetailV3DTO> updateScriptBasic(
@RequestBody
@Validated(Update.class)
EsbUpdateScriptBasicV3Req request
);

@PutMapping("/update_script_version")
@PostMapping("/update_script_version")
EsbResp<EsbScriptVersionDetailV3DTO> updateScriptVersion(
@RequestBody
@Validated(Update.class)
Expand Down
Loading