From 325ea8e8f7bc4df7b07fd107cc9b3bd315d8e7f1 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 4 Oct 2017 18:26:10 +0530 Subject: Migrate plugins to use info section Issue-Id: CLI-66 Change-Id: I06a2b76ac426bfcfe3b5fcf5e3b828d18c0e9a68 Signed-off-by: Kanagaraj Manickam k00365106 --- .../open-cli-schema/microservice-create-schema.yaml | 13 ++++++++----- .../open-cli-schema/microservice-delete-schema.yaml | 13 ++++++++----- .../open-cli-schema/microservice-list-schema.yaml | 15 ++++++++++----- .../open-cli-schema/microservice-show-schema.yaml | 14 +++++++++----- 4 files changed, 35 insertions(+), 20 deletions(-) (limited to 'plugins/onap-1.1/features/msb/src/main') diff --git a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml index 79afd2c7..560fde38 100644 --- a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml +++ b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml @@ -1,11 +1,11 @@ open_cli_schema_version: 1.0 name: microservice-create description: Register microservice into Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none + +info: + product: onap-1.1 + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: service-name @@ -81,6 +81,9 @@ results: scope: long type: string http: + service: + auth: none + mode: direct request: uri: /services method: POST diff --git a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml index 82eabf95..28fe2094 100644 --- a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml +++ b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml @@ -1,11 +1,11 @@ open_cli_schema_version: 1.0 name: microservice-delete description: Deletes the micro service from Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none + +info: + product: onap-1.1 + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org parameters: - name: service-name @@ -33,6 +33,9 @@ parameters: long_option: node-port is_optional: false http: + service: + auth: none + mode: direct request: uri: /services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port} method: DELETE diff --git a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml index 52014c9b..e355e2cc 100644 --- a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml +++ b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml @@ -1,11 +1,13 @@ open_cli_schema_version: 1.0 name: microservice-list description: Lists the registetred micro services in Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none + + +info: + product: onap-1.1 + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + results: direction: landscape attributes: @@ -38,6 +40,9 @@ results: scope: long type: string http: + service: + auth: none + mode: direct request: uri: /services method: GET diff --git a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml index a9e1cced..d3d1d08a 100644 --- a/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml +++ b/plugins/onap-1.1/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml @@ -1,11 +1,12 @@ open_cli_schema_version: 1.0 name: microservice-show description: Details the registered microservice in Onap -version: onap-1.1 -service: - name: msb - version: v1 - auth: none + +info: + product: onap-1.1 + service: msb + author: ONAP CLI Team onap-discuss@lists.onap.org + parameters: - name: service-name description: Onap service name @@ -51,6 +52,9 @@ results: scope: long type: string http: + service: + auth: none + mode: direct request: uri: /services/${service-name}/version/${service-version} method: GET -- cgit 1.2.3-korg