blob: 85adbedd4abf0da2ad377197c984376c48030c08 [file] [log] [blame]
elinuxhenrik1aa2b7f2021-05-31 13:19:09 +02001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (C) 2021 Nordix
4
5.. _api_docs:
6
7========
8API-Docs
9========
10
11This document describes the API to access the Non-RT RIC Gateway.
12
13The Gateway acts as a mediator for services provided by the Non-RT RIC project. This means that users only need to
14know about one address to access the content of the Non-RT Ric.
15
16The default value for the Gateway port is 9090. There are different ways to find out which port that is actually used.
17
18If Kubernetes is used, run the following command:
19
20 .. code-block:: bash
21
22 kubectl get svc -n nonrtric | grep gateway
23
24With the name from the "NAME" column, run the following command:
25
26 .. code-block:: bash
27
28 kubectl describe svc -n nonrtric [name]
29
30If Docker is used, run the following command:
31
32 .. code-block:: bash
33
34 docker ps | grep gateway
35
36Look under the "PORTS" column to see the port used by the Gateway.
37
38The Gateway supports calls to the A1 Policy Management Service and A1 Enrichment Information Coordinator.
39See `A1 Policy Management Service API <https://docs.o-ran-sc.org/projects/o-ran-sc-nonrtric/en/latest/api-docs.html#a1-policy-management-service>`__
elinuxhenrik944400b2021-06-01 12:56:09 +020040and `A1 Enrichment Information Coordinator API <https://docs.o-ran-sc.org/projects/o-ran-sc-nonrtric/en/latest/api-docs.html#enrichment-coordinator-service>`__.
41
42Some examples on how to call the gateway with CURL:
43
44 .. code-block:: bash
45
46 curl localhost:9090/a1-policy/v2/policy-instances
47 curl localhost:9090/data-producer/v1/info-types