fix 415 unsupported media type (#2122)

This commit is contained in:
zryfish
2020-05-26 15:29:06 +08:00
committed by GitHub
parent 5c44d17d9e
commit ccb7a89061

View File

@@ -40,7 +40,8 @@ func init() {
func NewWebService(gv schema.GroupVersion) *restful.WebService {
webservice := restful.WebService{}
webservice.Path(ApiRootPath + "/" + gv.String())
webservice.Path(ApiRootPath + "/" + gv.String()).
Produces(restful.MIME_JSON)
return &webservice
}