Bug 258 - Add example of URIs for service registration in the OpenApis
Summary: Add example of URIs for service registration in the OpenApis
Status: CONFIRMED
Alias: None
Product: MEC
Classification: Unclassified
Component: GS 011 (show other bugs)
Version: Release 2
Hardware: PC Windows
Assignee: Walter Featherstone
 
Reported: 2020-06-24 13:37 CEST by Michele Carignani
Modified: 2020-06-24 20:00 CEST (History)
3 users (show)

See Also:
Version number of the related document: 2.1.1
OpenAPI issue category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Carignani 2020-06-24 13:37:37 CEST

    
Comment 1 Davide Borsatti 2020-06-24 20:00:43 CEST
The example could simply be reformed as follows:

{
  "serName": "ExampleService",
  "serCategory": {
    "href": "/example/catalogue1",
    "id": "id12345",
    "name": "RNI",
    "version": "version1"
  },
  "version": "ServiceVersion1",
  "state": "ACTIVE",
  "transportId": "Rest1",
  "transportInfo": {
    "id": "TransId12345",
    "name": "REST",
    "description": "REST API",
    "type": "REST_HTTP",
    "protocol": "HTTP",
    "version": "2.0",
    "endpoint": {
      "uris": [
        "http://SERVICE_IP/path/to/service"
      ]
    },
    "security": {
      "oAuth2Info": {
        "grantTypes": [
          "OAUTH2_CLIENT_CREDENTIALS"
        ],
        "tokenEndpoint": "/mecSerMgmtApi/security/TokenEndPoint"
      }
    },
    "implSpecificInfo": {}
  },
  "serializer": "JSON",
  "scopeOfLocality": "MEC_SYSTEM",
  "consumedLocalOnly": false,
  "isLocal": true
}


The example shows the easiest way to expose a service's endpoint. It is done by adding a value on the "uris" list.