updated CreateDeployTask api

Former-commit-id: fb4fc498ca0bb78cbeb823d64e5ff39cb46e6838
This commit is contained in:
tzwang 2024-08-29 16:54:09 +08:00
parent 04e72f9599
commit 3ebe01f35d
2 changed files with 2 additions and 2 deletions

View File

@ -973,7 +973,7 @@ service pcm {
get /inference/getDeployTasksByType (GetDeployTasksByTypeReq) returns (GetDeployTasksByTypeResp)
@handler CreateDeployTask
get /inference/createDeployTask (CreateDeployTaskReq) returns (CreateDeployTaskResp)
post /inference/createDeployTask (CreateDeployTaskReq) returns (CreateDeployTaskResp)
@handler GetAdaptersByModel
get /inference/getAdaptersByModel (GetAdaptersByModelReq) returns (GetAdaptersByModelResp)

View File

@ -1234,7 +1234,7 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
Handler: inference.GetDeployTasksByTypeHandler(serverCtx),
},
{
Method: http.MethodGet,
Method: http.MethodPost,
Path: "/inference/createDeployTask",
Handler: inference.CreateDeployTaskHandler(serverCtx),
},