Changing implementation for url to align with spec 66/11866/1
authornaman.gupta <naman.gupta@samsung.com>
Mon, 9 Oct 2023 11:29:20 +0000 (16:59 +0530)
committernaman.gupta <naman.gupta@samsung.com>
Mon, 9 Oct 2023 11:32:48 +0000 (17:02 +0530)
Changing implementation for url to align with the latest specification.

Change-Id: I2f71c507d5f8f51496f0788504020bb98264fc5f
Signed-off-by: naman.gupta <naman.gupta@samsung.com>
22 files changed:
pkg/restapi/embedded_spec.go
pkg/restapi/operations/a1_api.go
pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance.go
pkg/restapi/operations/a1_mediator/a1_controller_create_or_replace_policy_instance_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type.go
pkg/restapi/operations/a1_mediator/a1_controller_create_policy_type_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance.go
pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_instance_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type.go
pkg/restapi/operations/a1_mediator/a1_controller_delete_policy_type_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go
pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go
pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck.go
pkg/restapi/operations/a1_mediator/a1_controller_get_healthcheck_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_status_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_instance_urlbuilder.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type.go
pkg/restapi/operations/a1_mediator/a1_controller_get_policy_type_urlbuilder.go

index 77ad658..13a4989 100644 (file)
@@ -44,7 +44,7 @@ func init() {
     "version": "2.1.0"
   },
   "paths": {
-    "/a1-p/healthcheck": {
+    "/A1-P/v2/healthcheck": {
       "get": {
         "description": "Perform a healthcheck on a1\n",
         "tags": [
@@ -58,7 +58,7 @@ func init() {
         }
       }
     },
-    "/a1-p/policytypes": {
+    "/A1-P/v2/policytypes": {
       "get": {
         "description": "Get a list of all registered policy type ids",
         "produces": [
@@ -90,7 +90,7 @@ func init() {
         }
       }
     },
-    "/a1-p/policytypes/{policy_type_id}": {
+    "/A1-P/v2/policytypes/{policy_type_id}": {
       "get": {
         "description": "Get this policy type\n",
         "produces": [
@@ -178,7 +178,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies": {
       "get": {
         "description": "get a list of all policy instance ids for this policy type id",
         "produces": [
@@ -221,7 +221,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
       "get": {
         "description": "Retrieve the policy instance\n",
         "produces": [
@@ -323,7 +323,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
       "get": {
         "description": "Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)\n",
         "produces": [
@@ -465,7 +465,7 @@ func init() {
     "version": "2.1.0"
   },
   "paths": {
-    "/a1-p/healthcheck": {
+    "/A1-P/v2/healthcheck": {
       "get": {
         "description": "Perform a healthcheck on a1\n",
         "tags": [
@@ -479,7 +479,7 @@ func init() {
         }
       }
     },
-    "/a1-p/policytypes": {
+    "/A1-P/v2/policytypes": {
       "get": {
         "description": "Get a list of all registered policy type ids",
         "produces": [
@@ -511,7 +511,7 @@ func init() {
         }
       }
     },
-    "/a1-p/policytypes/{policy_type_id}": {
+    "/A1-P/v2/policytypes/{policy_type_id}": {
       "get": {
         "description": "Get this policy type\n",
         "produces": [
@@ -599,7 +599,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies": {
       "get": {
         "description": "get a list of all policy instance ids for this policy type id",
         "produces": [
@@ -642,7 +642,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}": {
       "get": {
         "description": "Retrieve the policy instance\n",
         "produces": [
@@ -744,7 +744,7 @@ func init() {
         }
       ]
     },
-    "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
+    "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status": {
       "get": {
         "description": "Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)\n",
         "produces": [
index a526e99..3d626cd 100644 (file)
@@ -357,11 +357,11 @@ func (o *A1API) initHandlerCache() {
        if o.handlers["PUT"] == nil {
                o.handlers["PUT"] = make(map[string]http.Handler)
        }
-       o.handlers["PUT"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerCreateOrReplacePolicyInstance(o.context, o.A1MediatorA1ControllerCreateOrReplacePolicyInstanceHandler)
+       o.handlers["PUT"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerCreateOrReplacePolicyInstance(o.context, o.A1MediatorA1ControllerCreateOrReplacePolicyInstanceHandler)
        if o.handlers["PUT"] == nil {
                o.handlers["PUT"] = make(map[string]http.Handler)
        }
-       o.handlers["PUT"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerCreatePolicyType(o.context, o.A1MediatorA1ControllerCreatePolicyTypeHandler)
+       o.handlers["PUT"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerCreatePolicyType(o.context, o.A1MediatorA1ControllerCreatePolicyTypeHandler)
        if o.handlers["POST"] == nil {
                o.handlers["POST"] = make(map[string]http.Handler)
        }
@@ -369,35 +369,35 @@ func (o *A1API) initHandlerCache() {
        if o.handlers["DELETE"] == nil {
                o.handlers["DELETE"] = make(map[string]http.Handler)
        }
-       o.handlers["DELETE"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerDeletePolicyInstance(o.context, o.A1MediatorA1ControllerDeletePolicyInstanceHandler)
+       o.handlers["DELETE"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerDeletePolicyInstance(o.context, o.A1MediatorA1ControllerDeletePolicyInstanceHandler)
        if o.handlers["DELETE"] == nil {
                o.handlers["DELETE"] = make(map[string]http.Handler)
        }
-       o.handlers["DELETE"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerDeletePolicyType(o.context, o.A1MediatorA1ControllerDeletePolicyTypeHandler)
+       o.handlers["DELETE"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerDeletePolicyType(o.context, o.A1MediatorA1ControllerDeletePolicyTypeHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies"] = a1_mediator.NewA1ControllerGetAllInstancesForType(o.context, o.A1MediatorA1ControllerGetAllInstancesForTypeHandler)
+       o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies"] = a1_mediator.NewA1ControllerGetAllInstancesForType(o.context, o.A1MediatorA1ControllerGetAllInstancesForTypeHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/policytypes"] = a1_mediator.NewA1ControllerGetAllPolicyTypes(o.context, o.A1MediatorA1ControllerGetAllPolicyTypesHandler)
+       o.handlers["GET"]["/A1-P/v2/policytypes"] = a1_mediator.NewA1ControllerGetAllPolicyTypes(o.context, o.A1MediatorA1ControllerGetAllPolicyTypesHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/healthcheck"] = a1_mediator.NewA1ControllerGetHealthcheck(o.context, o.A1MediatorA1ControllerGetHealthcheckHandler)
+       o.handlers["GET"]["/A1-P/v2/healthcheck"] = a1_mediator.NewA1ControllerGetHealthcheck(o.context, o.A1MediatorA1ControllerGetHealthcheckHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerGetPolicyInstance(o.context, o.A1MediatorA1ControllerGetPolicyInstanceHandler)
+       o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"] = a1_mediator.NewA1ControllerGetPolicyInstance(o.context, o.A1MediatorA1ControllerGetPolicyInstanceHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"] = a1_mediator.NewA1ControllerGetPolicyInstanceStatus(o.context, o.A1MediatorA1ControllerGetPolicyInstanceStatusHandler)
+       o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"] = a1_mediator.NewA1ControllerGetPolicyInstanceStatus(o.context, o.A1MediatorA1ControllerGetPolicyInstanceStatusHandler)
        if o.handlers["GET"] == nil {
                o.handlers["GET"] = make(map[string]http.Handler)
        }
-       o.handlers["GET"]["/a1-p/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerGetPolicyType(o.context, o.A1MediatorA1ControllerGetPolicyTypeHandler)
+       o.handlers["GET"]["/A1-P/v2/policytypes/{policy_type_id}"] = a1_mediator.NewA1ControllerGetPolicyType(o.context, o.A1MediatorA1ControllerGetPolicyTypeHandler)
 }
 
 // Serve creates a http handler to serve the API over HTTP
index 7ab9556..4b468e9 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerCreateOrReplacePolicyInstance(ctx *middleware.Context, handl
        return &A1ControllerCreateOrReplacePolicyInstance{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerCreateOrReplacePolicyInstance swagger:route PUT /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerCreateOrReplacePolicyInstance
+/* A1ControllerCreateOrReplacePolicyInstance swagger:route PUT /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerCreateOrReplacePolicyInstance
 
 Create or replace a policy instance of type policy_type_id. The schema of the PUT body is defined by the create_schema field of the policy type.
 
index df6bd5e..1fd5651 100644 (file)
@@ -65,7 +65,7 @@ func (o *A1ControllerCreateOrReplacePolicyInstanceURL) SetBasePath(bp string) {
 func (o *A1ControllerCreateOrReplacePolicyInstanceURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
 
        policyInstanceID := o.PolicyInstanceID
        if policyInstanceID != "" {
index 7430978..828f7c2 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerCreatePolicyType(ctx *middleware.Context, handler A1Controll
        return &A1ControllerCreatePolicyType{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerCreatePolicyType swagger:route PUT /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerCreatePolicyType
+/* A1ControllerCreatePolicyType swagger:route PUT /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerCreatePolicyType
 
 Create a new policy type . Replace is not currently allowed; to replace, for now do a DELETE and then a PUT again.
 
index 5825707..7547edd 100644 (file)
@@ -62,7 +62,7 @@ func (o *A1ControllerCreatePolicyTypeURL) SetBasePath(bp string) {
 func (o *A1ControllerCreatePolicyTypeURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}"
 
        policyTypeID := swag.FormatInt64(o.PolicyTypeID)
        if policyTypeID != "" {
index fae0c39..fac49d5 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerDeletePolicyInstance(ctx *middleware.Context, handler A1Cont
        return &A1ControllerDeletePolicyInstance{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerDeletePolicyInstance swagger:route DELETE /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerDeletePolicyInstance
+/* A1ControllerDeletePolicyInstance swagger:route DELETE /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerDeletePolicyInstance
 
 Delete this policy instance
 
index ccced04..0194e59 100644 (file)
@@ -65,7 +65,7 @@ func (o *A1ControllerDeletePolicyInstanceURL) SetBasePath(bp string) {
 func (o *A1ControllerDeletePolicyInstanceURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
 
        policyInstanceID := o.PolicyInstanceID
        if policyInstanceID != "" {
index cb3782e..1d99508 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerDeletePolicyType(ctx *middleware.Context, handler A1Controll
        return &A1ControllerDeletePolicyType{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerDeletePolicyType swagger:route DELETE /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerDeletePolicyType
+/* A1ControllerDeletePolicyType swagger:route DELETE /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerDeletePolicyType
 
 Delete this policy type. Can only be performed if there are no instances of this type
 
index 322d4ac..6d3334d 100644 (file)
@@ -62,7 +62,7 @@ func (o *A1ControllerDeletePolicyTypeURL) SetBasePath(bp string) {
 func (o *A1ControllerDeletePolicyTypeURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}"
 
        policyTypeID := swag.FormatInt64(o.PolicyTypeID)
        if policyTypeID != "" {
index 01350b7..3251e81 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerGetAllInstancesForType(ctx *middleware.Context, handler A1Co
        return &A1ControllerGetAllInstancesForType{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetAllInstancesForType swagger:route GET /a1-p/policytypes/{policy_type_id}/policies A1 Mediator a1ControllerGetAllInstancesForType
+/* A1ControllerGetAllInstancesForType swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies A1 Mediator a1ControllerGetAllInstancesForType
 
 get a list of all policy instance ids for this policy type id
 
index 5e2e200..695b979 100644 (file)
@@ -62,7 +62,7 @@ func (o *A1ControllerGetAllInstancesForTypeURL) SetBasePath(bp string) {
 func (o *A1ControllerGetAllInstancesForTypeURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}/policies"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies"
 
        policyTypeID := swag.FormatInt64(o.PolicyTypeID)
        if policyTypeID != "" {
index eeef4ae..1e4eee0 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerGetAllPolicyTypes(ctx *middleware.Context, handler A1Control
        return &A1ControllerGetAllPolicyTypes{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetAllPolicyTypes swagger:route GET /a1-p/policytypes A1 Mediator a1ControllerGetAllPolicyTypes
+/* A1ControllerGetAllPolicyTypes swagger:route GET /A1-P/v2/policytypes A1 Mediator a1ControllerGetAllPolicyTypes
 
 Get a list of all registered policy type ids
 
index 2a5c4da..867842c 100644 (file)
@@ -55,7 +55,7 @@ func (o *A1ControllerGetAllPolicyTypesURL) SetBasePath(bp string) {
 func (o *A1ControllerGetAllPolicyTypesURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes"
+       var _path = "/A1-P/v2/policytypes"
 
        _basePath := o._basePath
        _result.Path = golangswaggerpaths.Join(_basePath, _path)
index 1294781..e9cf40b 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerGetHealthcheck(ctx *middleware.Context, handler A1Controller
        return &A1ControllerGetHealthcheck{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetHealthcheck swagger:route GET /a1-p/healthcheck A1 Mediator a1ControllerGetHealthcheck
+/* A1ControllerGetHealthcheck swagger:route GET /A1-P/v2/healthcheck A1 Mediator a1ControllerGetHealthcheck
 
 Perform a healthcheck on a1
 
index 1863b57..4f87075 100644 (file)
@@ -55,7 +55,7 @@ func (o *A1ControllerGetHealthcheckURL) SetBasePath(bp string) {
 func (o *A1ControllerGetHealthcheckURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/healthcheck"
+       var _path = "/A1-P/v2/healthcheck"
 
        _basePath := o._basePath
        _result.Path = golangswaggerpaths.Join(_basePath, _path)
index bae1056..b9add6e 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerGetPolicyInstance(ctx *middleware.Context, handler A1Control
        return &A1ControllerGetPolicyInstance{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetPolicyInstance swagger:route GET /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerGetPolicyInstance
+/* A1ControllerGetPolicyInstance swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id} A1 Mediator a1ControllerGetPolicyInstance
 
 Retrieve the policy instance
 
index 4729b41..cc4a531 100644 (file)
@@ -55,7 +55,7 @@ func NewA1ControllerGetPolicyInstanceStatus(ctx *middleware.Context, handler A1C
        return &A1ControllerGetPolicyInstanceStatus{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetPolicyInstanceStatus swagger:route GET /a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status A1 Mediator a1ControllerGetPolicyInstanceStatus
+/* A1ControllerGetPolicyInstanceStatus swagger:route GET /A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status A1 Mediator a1ControllerGetPolicyInstanceStatus
 
 Retrieve the policy instance status across all handlers of the policy If this endpoint returns successfully (200), it is either IN EFFECT or NOT IN EFFECT. IN EFFECT is returned if at least one policy handler in the RIC is implementing the policy NOT IN EFFECT is returned otherwise If a policy instance is successfully deleted, this endpoint will return a 404 (not a 200)
 
index daa3860..a8fb281 100644 (file)
@@ -63,7 +63,7 @@ func (o *A1ControllerGetPolicyInstanceStatusURL) SetBasePath(bp string) {
 func (o *A1ControllerGetPolicyInstanceStatusURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}/status"
 
        policyInstanceID := o.PolicyInstanceID
        if policyInstanceID != "" {
index 2bad387..c4eea21 100644 (file)
@@ -65,7 +65,7 @@ func (o *A1ControllerGetPolicyInstanceURL) SetBasePath(bp string) {
 func (o *A1ControllerGetPolicyInstanceURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}/policies/{policy_instance_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}/policies/{policy_instance_id}"
 
        policyInstanceID := o.PolicyInstanceID
        if policyInstanceID != "" {
index 89bac68..e2614e9 100644 (file)
@@ -49,7 +49,7 @@ func NewA1ControllerGetPolicyType(ctx *middleware.Context, handler A1ControllerG
        return &A1ControllerGetPolicyType{Context: ctx, Handler: handler}
 }
 
-/* A1ControllerGetPolicyType swagger:route GET /a1-p/policytypes/{policy_type_id} A1 Mediator a1ControllerGetPolicyType
+/* A1ControllerGetPolicyType swagger:route GET /A1-P/v2/policytypes/{policy_type_id} A1 Mediator a1ControllerGetPolicyType
 
 Get this policy type
 
index 775430c..ea2c563 100644 (file)
@@ -62,7 +62,7 @@ func (o *A1ControllerGetPolicyTypeURL) SetBasePath(bp string) {
 func (o *A1ControllerGetPolicyTypeURL) Build() (*url.URL, error) {
        var _result url.URL
 
-       var _path = "/a1-p/policytypes/{policy_type_id}"
+       var _path = "/A1-P/v2/policytypes/{policy_type_id}"
 
        policyTypeID := swag.FormatInt64(o.PolicyTypeID)
        if policyTypeID != "" {