Update NBI version to 4 62/83962/1
authorromaingimbert <romain.gimbert@orange.com>
Tue, 2 Apr 2019 11:50:17 +0000 (13:50 +0200)
committerromaingimbert <romain.gimbert@orange.com>
Tue, 2 Apr 2019 11:50:17 +0000 (13:50 +0200)
-change nbi version to 4.0.0
-change path to v4

Change-Id: Idc35e25fa13625b0916909d5030fcb458561a3fa
Issue-ID: EXTAPI-220
Signed-off-by: romaingimbert <romain.gimbert@orange.com>
12 files changed:
.env
Dockerfile
docs/architecture/NBI_Developer_Guide.rst
docs/installation/installation.rst
docs/offeredapis/offeredapis.rst
docs/releasenotes/releasenotes.rst
pom.xml
src/main/resources/application-test.properties
src/main/resources/application.properties
src/test/java/karate-config.js
src/test/resources/karatetest/data/subscriber.json
src/test/resources/karatetest/features/01--ServiceInventory.feature

diff --git a/.env b/.env
index 71c1433..b5e681d 100644 (file)
--- a/.env
+++ b/.env
 #     limitations under the License.
 #
 
-NBI_VERSION=v3
+NBI_VERSION=v4
 
 # APPLICATION
-SERVER_CONTEXTPATH=/nbi/api/v3
+SERVER_CONTEXTPATH=/nbi/api/v4
 SERVER_PORT=8080
 
 # ONAP
@@ -27,7 +27,7 @@ ONAP_CLOUDOWNER=
 NEXUS_DOCKER_REPO=nexus3.onap.org:10001
 
 # NBI
-NBI_URL=http://localhost:8080/nbi/api/v3
+NBI_URL=http://localhost:8080/nbi/api/v4
 NBI_CALLFORVNF=false
 
 # SDC
index 91a6a9d..0566534 100644 (file)
@@ -17,7 +17,7 @@
 FROM openjdk:8-jre-alpine
 
 ARG SERVER_PORT
-ARG PKG_FILENAME=nbi-rest-services-3.0.1.jar
+ARG PKG_FILENAME=nbi-rest-services-4.0.0.jar
 ADD target/$PKG_FILENAME app.jar
 
 RUN addgroup -S appgroup
index 6a38891..82a7f34 100644 (file)
@@ -83,7 +83,7 @@ You can view the log output of the application with the following command:
 
 **Testing**
 When the application is running, you can access the API at
-:samp:`http://yourhostname:8080/nbi/api/v3` and fill the URL with the name
+:samp:`http://yourhostname:8080/nbi/api/v4` and fill the URL with the name
 of the resources you asking for (/serviceSpecification, /service,
 /serviceOrder or /status)
 You can run a test by using `VisualStudio RestClient plugin <https://github.com/Huachao/vscode-restclient>`_
index ebf8c7a..fd52e84 100644 (file)
@@ -78,14 +78,14 @@ Test
 
 **Healthcheck**
 
-http://localhost:8080/nbi/api/v3/status
+http://localhost:8080/nbi/api/v4/status
 
 You should get::
 
     {
         "name": "nbi",
         "status": "ok",
-        "version": "v3"
+        "version": "v4"
     }
 
 **Play with RESTclient**
index f575b01..ac9b486 100644 (file)
@@ -30,7 +30,7 @@ API Version
 ***********
 
 APIs are described with a  state version with ā€œvā€ following the API Name,
-e.g.:  ``nbi/api/v3/productOrder``.
+e.g.:  ``nbi/api/v4/productOrder``.
 The schema associated with a REST API must have its version number aligned
 with that of the REST API.
 
@@ -121,7 +121,7 @@ Only *basic* service characteristics will be managed in this release. By
 
 **GET serviceSpecification(list)**
 
-Example: ``GET /nbi/api/v3/serviceSpecification/
+Example: ``GET /nbi/api/v4/serviceSpecification/
 ?category=NetworkService&distributionStatus=DISTRIBUTED``
 
 It is possible to retrieve a list of ``serviceSpecification`` (get by list).
@@ -134,14 +134,14 @@ If no ``serviceSpecification`` matches, an empty list is send back.
 
 **GET service Specification (id)**
 
-Example: ``GET /nbi/api/v3/serviceSpecification/{uuid}``
+Example: ``GET /nbi/api/v4/serviceSpecification/{uuid}``
 
 It is use to retrieve one ``serviceSpecification`` - all available information
 are retieved (see Swagger for description)
 
 **GET service Specification Schema (id)**
 
-Example: ``GET /nbi/api/v3/serviceSpecification/{uuid}/specificationInputSchema``
+Example: ``GET /nbi/api/v4/serviceSpecification/{uuid}/specificationInputSchema``
 
 It is use to retrieve one  input schema from the tosca file stored in **NBI** - all available
 information are retieved (see Swagger for description)
@@ -159,7 +159,7 @@ and ``type``
 
 **GET Service Inventory (list)**
 
-Example: ``GET /nbi/api/v3/service/?relatedParty.id=Pontus``
+Example: ``GET /nbi/api/v4/service/?relatedParty.id=Pontus``
 
 GET (by list) allows to request with following criteria (all optional) :
 
@@ -184,7 +184,7 @@ if no service matches, an empty list is send back.
 
 **GET Service Inventory (id)**
 
-Example: ``GET /nbi/api/v3/service/{id}`` When querying for a specific service 
+Example: ``GET /nbi/api/v4/service/{id}`` When querying for a specific service
 instance id, no additional filters are required.
 
 The Service Inventory API will retrieve the service instance data from A&AI using 
index cdf3090..4943011 100755 (executable)
@@ -4,7 +4,7 @@
 Release Notes
 =============
 
-Version: 3.0.1
+Version: 4.0.0
 --------------
 
 :Release Date: 2018-11-30
diff --git a/pom.xml b/pom.xml
index 09cc6b3..72d2c75 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -13,7 +13,7 @@
 
   <groupId>org.onap.externalapi-nbi</groupId>
   <artifactId>nbi-rest-services</artifactId>
-  <version>3.0.1</version>
+  <version>4.0.0</version>
   <packaging>jar</packaging>
 
   <name>externalapi-nbi</name>
index ed34f0a..8511a3b 100644 (file)
@@ -14,7 +14,7 @@
 #     limitations under the License.
 #
 
-nbi.version                         = v3
+nbi.version                         = v4
 
 # SERVER
 server.servlet.context-path         = /nbi/api/${nbi.version}
index d488505..5b908b3 100644 (file)
@@ -20,7 +20,7 @@
 spring.profiles.active               = default
 
 # VERSION
-nbi.version                          = v3
+nbi.version                          = v4
 
 # SERVER
 server.servlet.context-path          = /nbi/api/${nbi.version}
index f67e555..4b81173 100644 (file)
@@ -1,6 +1,6 @@
 function() {
   var config = {
-    nbiBaseUrl: 'http://localhost:8080/nbi/api/v3'
+    nbiBaseUrl: 'http://localhost:8080/nbi/api/v4'
   };
   karate.configure('connectTimeout', 5000);
   karate.configure('readTimeout', 5000);
index 1853952..14dfdb8 100644 (file)
@@ -13,7 +13,7 @@
     "query": "eventType=ServiceOrderItemStateChangeNotification"
   },
   {
-    "callback": "http://localhost:8080/nbi/api/v3/test/listener",
+    "callback": "http://localhost:8080/nbi/api/v4/test/listener",
     "query": "eventType=ServiceOrderStateChangeNotification"
   }
 ]
\ No newline at end of file
index 95f8696..eacbf2f 100644 (file)
@@ -20,7 +20,7 @@ And match $.supportingResource == '#[2]'
 
 
 Scenario: testServiceResourceGetInventoryWithStatus
-Given url 'http://localhost:8080/nbi/api/v3/service/405c8c00-44b9-4303-9f27-6797d22ca096'
+Given path 'service','405c8c00-44b9-4303-9f27-6797d22ca096'
 When method get
 Then status 200
 And match $.state == 'Active'