Commit ba88c40c authored by guillecxb's avatar guillecxb
Browse files

return suppFeat in the same field

parent aade85c8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -102,7 +102,10 @@ class ProviderManagementOperations(Resource):
            current_app.logger.debug("Provider inserted in database")

            response_obj = serialize_clean_camel_case(api_provider_enrolment_details)
            response_obj["supportedFeaturesFlags"] = negotiated_flags

            # ← Aquí aplicamos el cambio: sustituimos suppFeat por los flags interpretados
            response_obj["suppFeat"] = negotiated_flags

            res = make_response(object=response_obj, status=201)
            res.headers['Location'] = f"https://{os.getenv("CAPIF_HOSTNAME")}/api-provider-management/v1/registrations/{str(api_provider_enrolment_details.api_prov_dom_id)}"
            return res