update job rerun api

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-07-03 15:03:15 +08:00
parent d789b9bb74
commit f2ba29fe14
3 changed files with 5 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ func addWebService(c *restful.Container) error {
Doc("Rerun job whether the job is complete or not").
Param(webservice.PathParameter("job", "job name")).
Param(webservice.PathParameter("namespace", "the namespace where the job runs in")).
Param(webservice.QueryParameter("a", "action")).
Param(webservice.QueryParameter("action", "action must be \"rerun\"")).
Returns(http.StatusOK, ok, errors.Error{}))
webservice.Route(webservice.GET("/{resources}").