X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=pkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_all_policy_types.go;h=1e4eee0194682504be3599fc2759819f8d8f5a56;hb=refs%2Fchanges%2F66%2F11866%2F1;hp=70758b32d485da54294afff4928a56da9493b584;hpb=b7a743adb64d9a737e505d54fbdbe46777551d06;p=ric-plt%2Fa1.git diff --git a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go index 70758b3..1e4eee0 100644 --- a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go +++ b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_policy_types.go @@ -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 @@ -62,17 +62,15 @@ type A1ControllerGetAllPolicyTypes struct { func (o *A1ControllerGetAllPolicyTypes) ServeHTTP(rw http.ResponseWriter, r *http.Request) { route, rCtx, _ := o.Context.RouteInfo(r) if rCtx != nil { - r = rCtx + *r = *rCtx } var Params = NewA1ControllerGetAllPolicyTypesParams() - if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params o.Context.Respond(rw, r, route.Produces, route, err) return } res := o.Handler.Handle(Params) // actually handle the request - o.Context.Respond(rw, r, route.Produces, route, res) }