The purpose of this backoffice is to operate on the CAPIF resources (Invokers/ Provider and associated resources) being able to perform listing and deletion operations on them.
## Prerequisites
You need to have a full CAPIF instance running (check this link <https://github.com/EVOLVED-5G/CAPIF_API_Services>)
To execute operations on CAPIF it is necessary to have certificates issued by CAPIF. To obtain them once the CAPIF instance is raised, execute the following code
```
cd cert
python create_cert_to_capif.py
```
This python script Creates a csr request, sends it to CAPIF to be signed, and gets the ca root from CAPIF.
## How to launch the backend
1. (Optional) Run pipenv
2. Install requirements
```
pip3 install -r requirements.txt
```
3. Launch backend
```
python main.py
```
## Current state and work in progress
1. Current Features
- Provide Tokens and Refresh Tokens
- List of Invokers registered in CAPIF
- List of Provider registered in CAPIF
- List of Services registered in CAPIF by providers
- List of Security Context registered in CAPIF by Invokers
- Delete of Security Context registered in CAPIF
2. Pending Features
- Delete Events Subscriptions registered in CAPIF by Invokers/Providers
- List of Events Subscriptions registered in CAPIF by Invokers/Providers