updated CreateDeployTask api

This commit is contained in:
tzwang 2024-08-29 16:54:09 +08:00
parent ae411caf7a
commit fb4fc498ca
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),
},