X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_all_instances_for_type.go;fp=pkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_all_instances_for_type.go;h=01350b79ed59c8706bf52e9e147edad8835453f8;hb=5152bd39551f19139752d89a795327ca9dd189db;hp=40802338a1bda662abe29297ac673bc51d862ba8;hpb=272fb5b36779f68a944ca317fa6a6159da0128e3;p=ric-plt%2Fa1.git diff --git a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go index 4080233..01350b7 100644 --- a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go +++ b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type.go @@ -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/policytypes/{policy_type_id}/policies A1 Mediator a1ControllerGetAllInstancesForType get a list of all policy instance ids for this policy type id @@ -62,17 +62,15 @@ type A1ControllerGetAllInstancesForType struct { func (o *A1ControllerGetAllInstancesForType) ServeHTTP(rw http.ResponseWriter, r *http.Request) { route, rCtx, _ := o.Context.RouteInfo(r) if rCtx != nil { - r = rCtx + *r = *rCtx } var Params = NewA1ControllerGetAllInstancesForTypeParams() - 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) }