mcs set basepath on swagger yaml (#16)

This commit is contained in:
César Nieto
2020-04-03 13:17:31 -07:00
committed by GitHub
parent 35877973a9
commit 334b7ce671
62 changed files with 232 additions and 142 deletions

View File

@@ -57,7 +57,7 @@ func (o *UpdateGroupURL) SetBasePath(bp string) {
func (o *UpdateGroupURL) Build() (*url.URL, error) {
var _result url.URL
var _path = "/api/v1/groups/{name}"
var _path = "/groups/{name}"
name := o.Name
if name != "" {
@@ -67,6 +67,9 @@ func (o *UpdateGroupURL) Build() (*url.URL, error) {
}
_basePath := o._basePath
if _basePath == "" {
_basePath = "/api/v1"
}
_result.Path = golangswaggerpaths.Join(_basePath, _path)
return &_result, nil