mirror of
https://github.com/openziti/ziti.git
synced 2026-10-14 16:19:57 +00:00
Merge pull request #201 from openziti/add.edge.v1
set base path to /edge/v1
This commit is contained in:
Vendored
+2
@@ -289,6 +289,7 @@ func NewAppEnv(c *edgeConfig.Config) *AppEnv {
|
||||
if err != nil {
|
||||
pfxlog.Logger().Fatalln(err)
|
||||
}
|
||||
|
||||
api := operations.NewZitiEdgeAPI(swaggerSpec)
|
||||
api.ServeError = ServeError
|
||||
// See README.md in /ziti/edge/embedded for details
|
||||
@@ -319,6 +320,7 @@ func NewAppEnv(c *edgeConfig.Config) *AppEnv {
|
||||
api.ApplicationXPemFileConsumer = noOpConsumer
|
||||
api.ApplicationPkcs10Consumer = noOpConsumer
|
||||
|
||||
|
||||
api.ApplicationXPemFileProducer = &TextProducer{}
|
||||
api.ZtSessionAuth = func(token string) (principal interface{}, err error) {
|
||||
principal, err = ae.GetHandlers().ApiSession.ReadByToken(token)
|
||||
|
||||
@@ -192,9 +192,9 @@ func ListWithEnvelopeFactory(rc *response.RequestContext, toEnvelope ApiListEnve
|
||||
|
||||
meta := &rest_model.Meta{
|
||||
Pagination: &rest_model.Pagination{
|
||||
Limit: result.Limit,
|
||||
Offset: result.Offset,
|
||||
TotalCount: result.Count,
|
||||
Limit: &result.Limit,
|
||||
Offset: &result.Offset,
|
||||
TotalCount: &result.Count,
|
||||
},
|
||||
FilterableFields: result.FilterableFields,
|
||||
}
|
||||
@@ -429,12 +429,16 @@ func listWithId(rc *response.RequestContext, f func(id string) ([]interface{}, e
|
||||
|
||||
count := len(results)
|
||||
|
||||
limit := int64(count)
|
||||
offset := int64(0)
|
||||
totalCount := int64(count)
|
||||
|
||||
meta := &rest_model.Meta{
|
||||
FilterableFields: []string{},
|
||||
Pagination: &rest_model.Pagination{
|
||||
Limit: int64(count),
|
||||
Offset: 0,
|
||||
TotalCount: int64(count),
|
||||
Limit: &limit,
|
||||
Offset: &offset,
|
||||
TotalCount: &totalCount,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -533,9 +537,9 @@ func ListAssociations(rc *response.RequestContext, listF listAssocF) {
|
||||
|
||||
meta := &rest_model.Meta{
|
||||
Pagination: &rest_model.Pagination{
|
||||
Limit: result.Limit,
|
||||
Offset: result.Offset,
|
||||
TotalCount: result.Count,
|
||||
Limit: &result.Limit,
|
||||
Offset: &result.Offset,
|
||||
TotalCount: &result.Count,
|
||||
},
|
||||
FilterableFields: result.FilterableFields,
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -58,6 +59,10 @@ const (
|
||||
policyMaxFreq = 1 * time.Hour
|
||||
policyAppWanFreq = 1 * time.Second
|
||||
policySessionFreq = 5 * time.Second
|
||||
|
||||
restApiBase = "/edge/"
|
||||
restApiBaseUrlV1 = "/edge/v1"
|
||||
restApiBaseUrlLatest = restApiBaseUrlV1
|
||||
)
|
||||
|
||||
func NewController(cfg config.Configurable) (*Controller, error) {
|
||||
@@ -217,7 +222,7 @@ func (c *Controller) Run() {
|
||||
handlers.AllowCredentials(),
|
||||
}
|
||||
|
||||
as := newApiServer(c.config, c.AppEnv.Api.Serve(func(handler http.Handler) http.Handler {
|
||||
apiHandler := c.AppEnv.Api.Serve(func(handler http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
|
||||
rc := c.AppEnv.CreateRequestContext(rw, r)
|
||||
|
||||
@@ -236,6 +241,16 @@ func (c *Controller) Run() {
|
||||
|
||||
handler.ServeHTTP(rw, r)
|
||||
})
|
||||
})
|
||||
|
||||
as := newApiServer(c.config, http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
|
||||
//if not edge prefix, translate to "/edge/v<latest>"
|
||||
if !strings.HasPrefix(request.URL.Path, restApiBase) {
|
||||
request.URL.Path = restApiBaseUrlLatest + request.URL.Path
|
||||
}
|
||||
|
||||
//let the OpenApi http router take over
|
||||
apiHandler.ServeHTTP(writer, request)
|
||||
}))
|
||||
|
||||
as.corsOptions = corsOpts
|
||||
|
||||
@@ -66,7 +66,7 @@ const (
|
||||
DefaultHost string = "demo.ziti.dev"
|
||||
// DefaultBasePath is the default BasePath
|
||||
// found in Meta (info) section of spec file
|
||||
DefaultBasePath string = "/"
|
||||
DefaultBasePath string = "/edge/v1"
|
||||
)
|
||||
|
||||
// DefaultSchemes are the default schemes found in Meta (info) section of spec file
|
||||
|
||||
@@ -30,8 +30,10 @@ package rest_model
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"github.com/go-openapi/errors"
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
"github.com/go-openapi/validate"
|
||||
)
|
||||
|
||||
// Pagination pagination
|
||||
@@ -40,17 +42,64 @@ import (
|
||||
type Pagination struct {
|
||||
|
||||
// limit
|
||||
Limit int64 `json:"limit,omitempty"`
|
||||
// Required: true
|
||||
Limit *int64 `json:"limit"`
|
||||
|
||||
// offset
|
||||
Offset int64 `json:"offset,omitempty"`
|
||||
// Required: true
|
||||
Offset *int64 `json:"offset"`
|
||||
|
||||
// total count
|
||||
TotalCount int64 `json:"totalCount,omitempty"`
|
||||
// Required: true
|
||||
TotalCount *int64 `json:"totalCount"`
|
||||
}
|
||||
|
||||
// Validate validates this pagination
|
||||
func (m *Pagination) Validate(formats strfmt.Registry) error {
|
||||
var res []error
|
||||
|
||||
if err := m.validateLimit(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateOffset(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if err := m.validateTotalCount(formats); err != nil {
|
||||
res = append(res, err)
|
||||
}
|
||||
|
||||
if len(res) > 0 {
|
||||
return errors.CompositeValidationError(res...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Pagination) validateLimit(formats strfmt.Registry) error {
|
||||
|
||||
if err := validate.Required("limit", "body", m.Limit); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Pagination) validateOffset(formats strfmt.Registry) error {
|
||||
|
||||
if err := validate.Required("offset", "body", m.Offset); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Pagination) validateTotalCount(formats strfmt.Registry) error {
|
||||
|
||||
if err := validate.Required("totalCount", "body", m.TotalCount); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -28,8 +28,8 @@
|
||||
// Schemes:
|
||||
// https
|
||||
// Host: demo.ziti.dev
|
||||
// BasePath: /
|
||||
// Version: 0.14.0
|
||||
// BasePath: /edge/v1
|
||||
// Version: 0.15.0
|
||||
// Contact:
|
||||
//
|
||||
// Consumes:
|
||||
|
||||
@@ -55,10 +55,10 @@ func init() {
|
||||
"info": {
|
||||
"title": "Ziti Edge",
|
||||
"contact": {},
|
||||
"version": "0.14.0"
|
||||
"version": "0.15.0"
|
||||
},
|
||||
"host": "demo.ziti.dev",
|
||||
"basePath": "/",
|
||||
"basePath": "/edge/v1",
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
@@ -6689,6 +6689,11 @@ func init() {
|
||||
},
|
||||
"pagination": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"limit",
|
||||
"offset",
|
||||
"totalCount"
|
||||
],
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "number",
|
||||
@@ -8299,10 +8304,10 @@ func init() {
|
||||
"info": {
|
||||
"title": "Ziti Edge",
|
||||
"contact": {},
|
||||
"version": "0.14.0"
|
||||
"version": "0.15.0"
|
||||
},
|
||||
"host": "demo.ziti.dev",
|
||||
"basePath": "/",
|
||||
"basePath": "/edge/v1",
|
||||
"paths": {
|
||||
"/": {
|
||||
"get": {
|
||||
@@ -22213,6 +22218,11 @@ func init() {
|
||||
},
|
||||
"pagination": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"limit",
|
||||
"offset",
|
||||
"totalCount"
|
||||
],
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "number",
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteAPISessionsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailAPISessionsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListAPISessionsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ func (o *AuthenticateURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *ListAuthenticatorsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *GetCaJwtURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListCasURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *VerifyCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateConfigURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteConfigURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailConfigURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListConfigTypesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListConfigsForConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListConfigsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchConfigURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateConfigTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateConfigURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *DeleteCurrentAPISessionURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *DetailCurrentIdentityAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *GetCurrentAPISessionURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *GetCurrentIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ func (o *ListCurrentIdentityAuthenticatorsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *PatchCurrentIdentityAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *UpdateCurrentIdentityAuthenticatorURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateEdgeRouterURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteEdgeRouterURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailEdgeRouterURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterEdgeRouterPoliciesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterIdentitiesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterServiceEdgeRouterPoliciesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterServicesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ func (o *ListEdgeRoutersURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchEdgeRouterURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateEdgeRouterURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateEdgeRouterPolicyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteEdgeRouterPolicyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailEdgeRouterPolicyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListEdgeRouterPoliciesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterPolicyEdgeRoutersURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *ListEdgeRouterPolicyIdentitiesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchEdgeRouterPolicyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateEdgeRouterPolicyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *EnrollCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ func (o *EnrollErOttURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ func (o *EnrollOttCaURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ func (o *EnrollOttURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ func (o *EnrollURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ func (o *ErnollUpdbURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteEnrollmentURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailEnrollmentURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListEnrollmentsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailGeoRegionURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListGeoRegionsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *AssociateIdentitysServiceConfigsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DeleteIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailIdentityTypeURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -75,7 +75,7 @@ func (o *DisassociateIdentitysServiceConfigsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ func (o *GetIdentityPolicyAdviceURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ func (o *ListIdentitiesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListIdentityEdgeRoutersURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListIdentityServicePoliciesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListIdentityServicesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListIdentityTypesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListIdentitysEdgeRouterPoliciesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *ListIdentitysServiceConfigsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *PatchIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *UpdateIdentityURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailSpecBodyURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ func (o *DetailSpecURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *ListRootURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *ListSpecsURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *ListSummaryURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *ListVersionURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ func (o *ListEdgeRouterRoleAttributesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListIdentityRoleAttributesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ func (o *ListServiceRoleAttributesURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ func (o *CreateServiceURL) Build() (*url.URL, error) {
|
||||
|
||||
_basePath := o._basePath
|
||||
if _basePath == "" {
|
||||
_basePath = "/"
|
||||
_basePath = "/edge/v1"
|
||||
}
|
||||
_result.Path = golangswaggerpaths.Join(_basePath, _path)
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user