diff --git a/doc/sdk-installation.md b/doc/sdk-installation.md index f286e75f4dcfabed9412d22206a197e7b03daefb..40f38a0144e87f988693f88943398cc267cb6d20 100644 --- a/doc/sdk-installation.md +++ b/doc/sdk-installation.md @@ -1,6 +1,11 @@ -# OpenCAPIF SDK development environment installation +# OpenCAPIF SDK installation +## OpenCAPIF SDK consumer installation + +SOON + +## OpenCAPIF SDK development environment installation Follow next steps to perform OpenCAPIF SDK installation: 1 - Create an enviroment with pyenv diff --git a/doc/sdk-prerequesites.md b/doc/sdk-prerequesites.md index 6ba335d952edc639a6e8c06c2e102e029a88fed1..cbcd74b9e7fe93ea99252ea0f18265a1d644aac8 100644 --- a/doc/sdk-prerequesites.md +++ b/doc/sdk-prerequesites.md @@ -1,8 +1,7 @@ ## OpenCAPIF SDK prerequisites -In order to leverage OpenCAPIF SDK it is required to have registered a user in the target CAPIF instance, so contact administrator to have required predefined credentials (username and password). +1. In order to leverage OpenCAPIF SDK it is required to have registered a user in the target CAPIF instance, so contact administrator to have required predefined credentials (username and password). -For developers installation is mandatory to have already installed: +2. For developers installation is mandatory to have already installed: - - pyenv 3.12 - - +- pyenv diff --git a/scripts/invoker_capif_connector_update.py b/scripts/invoker_capif_connector_update.py new file mode 100644 index 0000000000000000000000000000000000000000..ab359c4836b5a9c4547f3f24337dfe2b47a8a9c2 --- /dev/null +++ b/scripts/invoker_capif_connector_update.py @@ -0,0 +1,27 @@ +import sys +import os +import utilities + +# AƱadir el directorio del SDK al PYTHONPATH usando una ruta relativa +script_dir = os.path.dirname(os.path.abspath(__file__)) # Directorio actual del script +sdk_path = os.path.join(script_dir, '..', 'sdk') # Subir un nivel y apuntar a 'sdk' +sys.path.insert(0, sdk_path) + +from sdk import CAPIFInvokerConnector + + +def showcase_capif_connector(): + """ + This method showcases how one can use the CAPIFConnector class. + This class is intended for use within the evolved5G Command Line interface. + It is a low level class part of the SDK that is not required to use while creating invokers + """ + + capif_connector = CAPIFInvokerConnector(config_file=utilities.get_config_file()) + + capif_connector.update_Invoker() + print("COMPLETED") + +if __name__ == "__main__": + #Let's register invoker to CAPIF. This should happen exactly once + showcase_capif_connector() \ No newline at end of file