Skip to content
Snippets Groups Projects
Commit 10fa69a9 authored by Daniel García's avatar Daniel García
Browse files

Refactor without validation testing

parent de4af630
No related branches found
No related tags found
1 merge request!1Sdk v0.1 (#1)
Showing
with 32 additions and 15 deletions
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
# OpenCAPIF SDK # OpenCAPIF SDK
![OpenCAPIF icon](./images/OpenCAPIF-icon.jpg)
This repository develop a Python Software Development Kit(SDK) whis focuses on connecting to OpenCAPIF in a simple way, lowering integration complexity and allowing developers to focus on Network Functions (NF) or services development. This repository develop a Python Software Development Kit(SDK) whis focuses on connecting to OpenCAPIF in a simple way, lowering integration complexity and allowing developers to focus on Network Functions (NF) or services development.
OpentCAPIF SDK provides a set of libraries to enable either CAPIF provider and invoker roles, and other functions to simplify procedures calls towards OpenCAPIF. OpentCAPIF SDK provides a set of libraries to enable either CAPIF provider and invoker roles, and other functions to simplify procedures calls towards OpenCAPIF.
...@@ -9,30 +11,37 @@ OpentCAPIF SDK provides a set of libraries to enable either CAPIF provider and i ...@@ -9,30 +11,37 @@ OpentCAPIF SDK provides a set of libraries to enable either CAPIF provider and i
Current version of OpenCAPIF SDK is compatible with following publicly available releases: Current version of OpenCAPIF SDK is compatible with following publicly available releases:
- OpenCAPIF Release 1.0 [LINK TO OPENCAPIF RELEASE] - OpenCAPIF Release 1.0 [LINK TO OPENCAPIF RELEASE]
# Features # Table of Contents
1. [OpenCAPIF SDK usage](#OpenCAPIF-SDK-usage)
2. [OpenCAPIF SDK Features](#OpenCAPIF-SDK-Features)
3. [OpenCAPIF SDK Installation](#OpenCAPIF-SDK-Installation)
4. [How to use OpenCAPIF SDK](#How-to-use-OpenCAPIF-SDK)
5. [OpenCAPIF SDK known issues](#OpenCAPIF-SDK-known-issues)
# OpenCAPIF SDK usage
OpenCAPIF SDK implements this set of features to easily integrate an application with CAPIF NF either manually or integrating SDK library directly within app code.
OpenCAPIF SDK implements this set of features to integrate with CAPIF NF: This repository includes 2 different modes to test OpenCAPIF SDK:
- **Manual usage**: use a set of python scripts to test step by step all implemented procedures. All of them are provided at scripts folder,
[IMAGE OF ARCH APP ----> CAPIF WITH SCRIPTS]
- **Development usage**: import SDK in your code and start ... Within nf-sample folder, it is provided a sample application leveraging
[IMAGE OF ARCH APP ----> CAPIF WITH SDK INTEGRATION]
# OpenCAPIF SDK Features
- **Invoker CAPIF connector**: Simplifies the process of onboarding for Invoker users, - **Invoker CAPIF connector**: Simplifies the process of onboarding for Invoker users,
- **Provider CAPIF connector**: Simplifies the process of onboarding for Provider users,also has the capability to register several APF's and AEF's if its necesary, - **Provider CAPIF connector**: Simplifies the process of onboarding for Provider users,also has the capability to register several APF's and AEF's if its necesary,
- **Invoker Service Discovery**: Facilitates making a Discovery request to CAPIF, also stores the API services recieved and has an option to filter them, - **Invoker Service Discovery**: Facilitates making a Discovery request to CAPIF, also stores the API services recieved and has an option to filter them,
- **Invoker Service Get token**: After the Discovery, this functionality simplifies the way of getting created their propperly security context for each of the services and adquiring the access token to use the final APIs, - **Invoker Service Get token**: After the Discovery, this functionality simplifies the way of getting created their propperly security context for each of the services and adquiring the access token to use the final APIs,
- **Provider Publish API**: Simplifies the process of publishing an API. Also has the capability to chose which APF and AEF's will be used to publish the API, - **Provider Publish API**: Simplifies the process of publishing an API. Also has the capability to chose which APF and AEF's will be used to publish the API,
- **Provider Unpublish API**: Simplifies the process of deleting an API, - **Provider Unpublish API**: Simplifies the process of deleting an API,
- **Provider Update API**: Simplifies the process of updating an API. Also has the capability to chose which APF and AEF's will be used to update the API, - **Provider Update API**: Simplifies the process of updating an API. Also has the capability to chose which APF and AEF's will be used to update the API,
- **Provider Get API**: Simplifies the process of recieving the information of One service published previously, - **Provider Get API**: Simplifies the process of recieving the information of One service published previously,
- **Provider Get all APIs**: Simplifies the process of recieving the information of all available services published previously, - **Provider Get all APIs**: Simplifies the process of recieving the information of all available services published previously,
- **Invoker CAPIF connector offboarding**: Simplifies the process of offboarding for Invoker users, - **Invoker CAPIF connector offboarding**: Simplifies the process of offboarding for Invoker users,
- **Provider CAPIF connector offboarding**: Simplifies the process of offboarding for Provider users. - **Provider CAPIF connector offboarding**: Simplifies the process of offboarding for Provider users.
![Descripción de la imagen](./images/Flujo%20completo-OPENCAPIF%20ACTUAL.jpg) ![Descripción de la imagen](./images/Flujo%20completo-OPENCAPIF%20ACTUAL.jpg)
...@@ -48,8 +57,7 @@ Apart from the SDK core, there are available different functionalities for devel ...@@ -48,8 +57,7 @@ Apart from the SDK core, there are available different functionalities for devel
![Descripción de la imagen](./images/Flujo%20completo-SDK%20ACTUAL%20CON%20REGISTER.jpg) ![Descripción de la imagen](./images/Flujo%20completo-SDK%20ACTUAL%20CON%20REGISTER.jpg)
# OpenCAPIF SDK Installation (dev environment??)
# OpenCAPIF SDK Installation
Follow next steps to perform OpenCAPIF SDK installation: Follow next steps to perform OpenCAPIF SDK installation:
...@@ -103,7 +111,11 @@ pip install -r requirements.txt ...@@ -103,7 +111,11 @@ pip install -r requirements.txt
2 - Then it is needed to fill out config files depending on the features required to be used from the SDK. 2 - Then it is needed to fill out config files depending on the features required to be used from the SDK.
## Configuration of Config.json ## Prerequisites
IMPORTANT: 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).
## Configuration via Config.json
"invoker_folder": String | The path (relative or absolute) of the folder you want to store your invoker information "invoker_folder": String | The path (relative or absolute) of the folder you want to store your invoker information
...@@ -252,3 +264,6 @@ Each field is obligatory to complete except UUID, which is only obligatory in ca ...@@ -252,3 +264,6 @@ Each field is obligatory to complete except UUID, which is only obligatory in ca
Although this field is not obligatory we recomend to store the UUID parameter recieved by the Register and login functionality in this field. Although this field is not obligatory we recomend to store the UUID parameter recieved by the Register and login functionality in this field.
# OpenCAPIF SDK known issues
[TO PUT HERE ALL KNOWN ISSUES OR BACKLOG]
\ No newline at end of file
File moved
File moved
File moved
images/OpenCAPIF-icon.jpg

7.05 KiB

AQUÍ EL CÓDIGO DE EJMEMPLO DE UNA NF/APP QUE HACE USO DEL SDK
\ No newline at end of file
AQUÍ TODOS LOS SCRIPTS DEL SDK
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment