API Gateway

Abstract

The API gateway provides WEB access to all SDN-R related web service providers considering cross origin resource sharing (CORS) principles.

The Opendaylight default HTTP port is extendet by additonal URIs.

Path

Access

Description

Path

Access

Description

/database

elasticsearch

provides Elastic search REST-API

/aai

AAI

uses AAI API

/ms

mediator servers

provides api for external mediators based on

Melacon NetConf2SNMP project

Architecture

Configuration

The following snippet shows an exmaple of the configuration data for the API-Gateway component:



Filename: apigateway.properties

aai=https://aai.onap.myserver.com:8443
aaiHeaders=["X-FromAppId:SDNR","Authorization: Basic QUFJOkFBSQ=="]
database=http://localhost:9200
insecure=0
cors=1

aai=https://aai.onap.myserver.com:8443
aaiHeaders=["X-FromAppId:SDNR","Authorization: Basic QUFJOkFBSQ=="]
database=http://localhost:9200
insecure=0
cors=1



Reconfiguration

Paths are defined within

nano $ODL_KARAF_HOME/etc/apigateway.properties



Restart the bundle in the karaf console

./$ODL_KARAF_HOME/bin/client bundle:restart apigateway-impl

With the next request on apigateway it will be newly instantiated and the properties will be reloaded.

Related Issues

SDNC-571: SDN-R: Server side components - API GatewayClosed