elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 |
| 2 | International License. |
| 3 | .. http://creativecommons.org/licenses/by/4.0 |
| 4 | .. Copyright 2020 Nordix Foundation |
Singal, Kapil (ks220y) | 535be96 | 2020-10-07 12:59:08 -0400 | [diff] [blame] | 5 | |
| 6 | .. _offered_apis: |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 7 | |
| 8 | |
| 9 | Offered APIs |
| 10 | ============ |
| 11 | |
| 12 | Introduction |
| 13 | ************ |
| 14 | |
elinuxhenrik | ea2fcc8 | 2020-10-13 16:39:13 +0200 | [diff] [blame] | 15 | The north bound REST API of the Policy Management Service provides convenient methods to handle policies. |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 16 | |
| 17 | |
| 18 | Global ORAN architecture |
| 19 | ************************ |
| 20 | |
| 21 | Following illustration provides a global view about **ORAN** architecture, |
| 22 | integration with other ONAP components and API resource/operation provided. |
| 23 | |
elinuxhenrik | 42fb47f | 2020-11-17 17:43:28 +0100 | [diff] [blame^] | 24 | .. image:: ../media/ONAP-A1ControllerArchitecture.png |
Singal, Kapil (ks220y) | 535be96 | 2020-10-07 12:59:08 -0400 | [diff] [blame] | 25 | :width: 500pt |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 26 | |
| 27 | |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 28 | API Version |
| 29 | *********** |
| 30 | |
| 31 | APIs are described with a state version with "v" following the API Name, |
elinuxhenrik | ea2fcc8 | 2020-10-13 16:39:13 +0200 | [diff] [blame] | 32 | e.g.: ``v2/policy``. |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 33 | The schema associated with a REST API must have its version number aligned |
| 34 | with that of the REST API. |
| 35 | |
| 36 | The version number has major, minor and revision numbers. E.g. v1.0.0 |
| 37 | The version number (without the revision number) is held in the URI. |
| 38 | |
| 39 | The major version number is incremented for an incompatible change. |
| 40 | The minor version number is incremented for a compatible change. |
| 41 | For minor modifications of the API, version numbering must not be updated, |
| 42 | provided the following backward compatibility rules are respected: |
| 43 | |
| 44 | - New elements in a data type must be optional (``minOccurs=0``) |
| 45 | - Changes in the cardinality of an attribute in a data type must be from |
| 46 | mandatory to optional or from lower to greater |
| 47 | - New attributes defined in an element must be optional (absence of |
| 48 | ``use="required"``). |
| 49 | - If new enumerated values are included, the former ones and its meaning must |
| 50 | be kept. |
| 51 | - If new operations are added, the existing operations must be kept |
| 52 | - New parameters added to existing operations must be optional and existing |
| 53 | parameters must be kept |
| 54 | |
| 55 | For major modifications of the API, not backward compatible and forcing client |
| 56 | implementations to be changed, the version number must be updated. |
| 57 | |
| 58 | |
| 59 | API Table |
| 60 | ********* |
| 61 | |
| 62 | .. |swagger-icon| image:: ../media/swagger.png |
| 63 | :width: 40px |
| 64 | |
elinuxhenrik | 9bb9a4c | 2020-10-08 14:36:37 +0200 | [diff] [blame] | 65 | .. |yaml-icon| image:: ../media/yaml_logo.png |
| 66 | :width: 40px |
| 67 | |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 68 | |
| 69 | .. csv-table:: |
elinuxhenrik | 9bb9a4c | 2020-10-08 14:36:37 +0200 | [diff] [blame] | 70 | :header: "API name", "|swagger-icon|", "|yaml-icon|" |
| 71 | :widths: 10,5, 5 |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 72 | |
elinuxhenrik | 9bb9a4c | 2020-10-08 14:36:37 +0200 | [diff] [blame] | 73 | "PMS API", ":download:`link <./swagger/pms-api.json>`", ":download:`link <./swagger/pms-api.yaml>`" |
elinuxhenrik | ea2fcc8 | 2020-10-13 16:39:13 +0200 | [diff] [blame] | 74 | "A1 ADAPTER API (Internal)", ":download:`link <./swagger/a1-adapter-api.json>`", ":download:`link <./swagger/a1-adapter-api.yaml>`" |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 75 | |
| 76 | |
Singal, Kapil (ks220y) | 535be96 | 2020-10-07 12:59:08 -0400 | [diff] [blame] | 77 | .. _pms_api: |
| 78 | |
elinuxhenrik | 3c0cb32 | 2020-10-01 10:52:59 +0200 | [diff] [blame] | 79 | PMS API |
| 80 | ....... |
| 81 | `PMS API <./pms-api.html>`_ |
| 82 | |
elinuxhenrik | ea2fcc8 | 2020-10-13 16:39:13 +0200 | [diff] [blame] | 83 | .. _a1_adapter_api: |
| 84 | |
| 85 | A1 ADAPTER API |
| 86 | .............. |
| 87 | `A1 ADAPTER API (Internal) <./a1-adapter-api.html>`_ |
| 88 | |