feat: add start and trigger savepoint routes
This commit is contained in:
@@ -35,6 +35,15 @@ func initRouter(api huma.API) {
|
||||
Tags: []string{"Job"},
|
||||
}, controller.StartJob)
|
||||
|
||||
huma.Register(api, huma.Operation{
|
||||
OperationID: "resume-job",
|
||||
Method: http.MethodPost,
|
||||
Path: "/jobs/{uid}/resume",
|
||||
Summary: "Resume Job",
|
||||
Description: "Resume Flink Job",
|
||||
Tags: []string{"Job"},
|
||||
}, controller.ResumeJob)
|
||||
|
||||
huma.Register(api, huma.Operation{
|
||||
OperationID: "remove-jar",
|
||||
Method: http.MethodPost,
|
||||
@@ -62,4 +71,12 @@ func initRouter(api huma.API) {
|
||||
Tags: []string{"Savepoint"},
|
||||
}, controller.DownloadSavepoint)
|
||||
|
||||
huma.Register(api, huma.Operation{
|
||||
OperationID: "trigger-savepoint",
|
||||
Method: http.MethodPost,
|
||||
Path: "/jobs/{uid}/trigger-savepoint",
|
||||
Summary: "Trigger Savepoint",
|
||||
Description: "Trigger Savepoint",
|
||||
Tags: []string{"Savepoint"},
|
||||
}, controller.TriggerSavepoint)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user