fix 415 unsupported media type (#2122)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user