X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=capifcore%2FREADME.md;h=faa18a6012eacd8766ddc4d2a9a0ddd2ab6d60f6;hb=refs%2Fchanges%2F78%2F10278%2F3;hp=cba7ff187cea4c3be8b09de8cca42ee448f6f98f;hpb=2adba02dd846eaefc17d8c1b71ae21c3895b9183;p=nonrtric%2Fplt%2Fsme.git
diff --git a/capifcore/README.md b/capifcore/README.md
index cba7ff1..faa18a6 100644
--- a/capifcore/README.md
+++ b/capifcore/README.md
@@ -20,9 +20,25 @@
-->
-# O-RAN-SC Non-RealTime CAPIF implementation
+# O-RAN-SC Non-RealTime RIC CAPIF Core implementation
-This product is a Go implementation of the CAPIF Core function, based on the 3GPP CAPIF interfaces.
+This product is a Go implementation of the CAPIF Core function, based on the 3GPP "29.222 Common API Framework for 3GPP Northbound APIs (CAPIF)" interfaces, see https://portal.3gpp.org/desktopmodules/Specifications/SpecificationDetails.aspx?specificationId=3450.
+
+The, almost, complete data model for CAPIF is shown in the diagram below.
+
+
+
+The data used within CAPIF Core for registering rApps that both provides and consumes services is shown in the diagram below.
+
+
+
+Some examples of interactions between components using the CAPIF interface are shown in the sequence diagram below.
+
+***NOTE!*** It has not been decided that CAPIF Core will actually do the Helm chart installation. This is just provided in the prototype as an example of what CAPIF Core could do.
+
+
+
+If Helm is used, before publishing a service, the chart that belongs to the service must be registered in ChartMuseum. When publishing the service the following information should be provided in the `ServiceAPIDescription::description` attribute; "namespace", "repoName", "chartName", "releaseName". An example of the information: "Description of rApp helloWorld,namespace,repoName,chartName,releaseName".
## Generation of API code
@@ -42,11 +58,12 @@ To fix the specifications there are three tools:
When a dependency to a new specification is introduced in any of the CAPIF specifications, see example below, the following steps should be performed:
-For the CAPIF specification "TS29222_CAPIF_Discover_Service_API" a new dependency like the following has been introduced.
-websockNotifConfig:
- $ref: '**TS29122_CommonData.yaml#/components/schemas/WebsockNotifConfig**'
+For the CAPIF specification "TS29222_CAPIF_Discover_Service_API" a new dependency like the following has been introduced.
+
+ websockNotifConfig:
+ $ref: â
TS29122_CommonData.yaml#/components/schemas/WebsockNotifConfigâ
'
-1. Copy the bold part of the reference and add it to the `definitions.txt` file. This step is not needed if the type is already defined in the file.
+1. Copy the part between the checkboxes of the reference and add it to the `definitions.txt` file. This step is not needed if the type is already defined in the file.
2. Look in the `generate.sh` script, between the "" and "" tags, to see if "TS29122_CommonData"
has already been replaced in "TS29222_CAPIF_Discover_Service_API".
3. If it has not been replaced, add a replacement above the "" tag by copying and adapting the two rows above the tag.
@@ -75,7 +92,8 @@ The application can also be built as a Docker image, by using the following comm
## Run
-To run the Core Function from the command line, run the following commands from this folder.
+To run the Core Function from the command line, run the following commands from this folder. For the parameter `chartMuseumUrl`, if it is not provided CAPIF Core will not do any Helm integration, i.e. try to start any Halm chart when publishing a service.
- ./capifcore [-port ]
+ ./capifcore [-port ] [-chartMuseumUrl ] [-repoName ] [-loglevel ]
+To run CAPIF Core as a K8s pod together with ChartMuseum, start and stop scripts are provided. The pod configurations are provided in the `configs` folder. CAPIF Core is then available on port `31570`.