Skip to content

Supported Features mandatory on POST and PUT Requests

Proposers

  • Jorge Moratinos Salcines (TID).

Description

We need to review PUT and POST Requests of Invoker Management Service and Provider Management Service, in order to check if supported features key is present or not in body received. If it's not present we must return an error because it's a mandatory key.

This is implemented in other services related with CAPIF 3GPP spec, but seems lost at invoker and provider management services.

error example:

 if event_subscription.supported_features is None:
                return bad_request_error(
                    detail="supportedFeatures not present in request",
                    cause="supportedFeatures not present",
                    invalid_params=[{"param": "supportedFeatures", "reason": "not defined"}]
                )

Demo or definition of done

Check with postman if onboard request for invoker or register request for provider returns error if supported features is note present at body.

Acknowledgements

This work is funded by the European Commission through the FIDAL project with Grant Agreement number 101096146.

Edited by Jorge Moratinos