Francisco Francisco 2018-05-03

added connector-skeleton/common/apiComponent/apiTemplate.js
added driver-skeleton/common/driverImplementation/modbus.js
added generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/OdbcParams.js
added generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.json
added generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.js
added swagger/Driver_v2.yaml
added swagger/API.yaml
changed driver-skeleton/common/driverImplementation/mqtt.js
changed driver-skeleton/common/driverImplementation/opc_ua.js
changed driver-skeleton/common/drivercomponent/driverTemplate.js
changed driver-skeleton/common/models/device.js
changed driver-skeleton/common/models/sensor.js
changed driver-skeleton/server/boot/create-sample-models.js
changed generator-vfos-io/templates/apis/odbc-sample/data.js
changed generator-vfos-io/templates/drivers/opc-ua/data.js
changed generator-vfos-io/generators/asset/index.js
changed generator-vfos-io/model/workspace.js
copied generator-vfos-io/templates/apis/odbc-sample/files/swagger/apiConnectors.yaml -> generator-vfos-io/templates/apis/odbc-sample/files/swagger/API.yaml
copied swagger/apiConnectors.yaml -> generator-vfos-io/swagger/API.yaml
connector-skeleton/common/apiComponent/apiTemplate.js Diff Switch to side-by-side view
Loading...
driver-skeleton/common/driverImplementation/modbus.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/OdbcParams.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.json Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.js Diff Switch to side-by-side view
Loading...
swagger/Driver_v2.yaml Diff Switch to side-by-side view
Loading...
swagger/API.yaml Diff Switch to side-by-side view
Loading...
driver-skeleton/common/driverImplementation/mqtt.js Diff Switch to side-by-side view
Loading...
driver-skeleton/common/driverImplementation/opc_ua.js Diff Switch to side-by-side view
Loading...
driver-skeleton/common/drivercomponent/driverTemplate.js Diff Switch to side-by-side view
Loading...
driver-skeleton/common/models/device.js Diff Switch to side-by-side view
Loading...
driver-skeleton/common/models/sensor.js Diff Switch to side-by-side view
Loading...
driver-skeleton/server/boot/create-sample-models.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/apis/odbc-sample/data.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/drivers/opc-ua/data.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/generators/asset/index.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/model/workspace.js Diff Switch to side-by-side view
Loading...
generator-vfos-io/templates/apis/odbc-sample/files/swagger/apiConnectors.yaml to generator-vfos-io/templates/apis/odbc-sample/files/swagger/API.yaml
--- a/generator-vfos-io/templates/apis/odbc-sample/files/swagger/apiConnectors.yaml
+++ b/generator-vfos-io/templates/apis/odbc-sample/files/swagger/API.yaml
@@ -1,49 +1,40 @@
 swagger: '2.0'
+info:
+  title: ODBC Connector
+  version: v1
+  description: The ODBC Connector allows the exchange of data with databases running on premise using a standard ODBC API. The ODBC standard provides database independence allowing the re-use of this API Connector in many different use case scenarios.
+basePath: /odbc/v1
+schemes:
+  - http
+  - https
 paths:
-  /schema:
+  /requestdb:
     get:
+      parameters:
+        - in: body
+          name: sqlRequest
+          required: true
+          type: string
+          description: 'SQL Request'
+      produces:
+        - application/json
       responses:
         '200':
           description: ''
-      summary: Get Schema of the database
-      description: " \tGet Schema of the database"
+  /dbSchema:
+    get:
       produces:
         - application/json
-      consumes:
-        - application/json
-      parameters:
-        - name: dbName
-          in: query
-          required: true
-          type: string
-        - name: username
-          in: query
-          required: true
-          type: string
-        - name: password
-          in: query
-          required: true
-          type: string
-        - name: ipAdress
-          in: query
-          required: true
-          type: string
-        - name: portNumber
-          in: query
-          required: true
-          type: string
-      x-auth-type: None
-      x-throttling-tier: Unlimited
-info:
-  title: OdbcConnector
-  version: v1
-  description: >-
-    The ODBC Connector allows the exchange of data with databases running on
-    premise using a standard ODBC API. The ODBC standard provides database
-    independence allowing the re-use of this API Connector in many different use
-    case scenarios.
-basePath: /OdbcConnector/v1
-host: '159.84.110.177:8243'
-schemes:
-  - https
-  - http
+      responses:
+        '200':
+            description: 'get DB Schema'
+definitions:
+  odbcModel:
+    type: object
+    required:
+      - sqlRequest
+    properties:
+      sqlRequest:
+        type: string
+        example: 'select * from test'
+        
swagger/apiConnectors.yaml to generator-vfos-io/swagger/API.yaml
--- a/swagger/apiConnectors.yaml
+++ b/generator-vfos-io/swagger/API.yaml
@@ -1,49 +1,29 @@
 swagger: '2.0'
+info:
+  title: ODBC Connector
+  version: v1
+  description: The ODBC Connector allows the exchange of data with databases running on premise using a standard ODBC API. The ODBC standard provides database independence allowing the re-use of this API Connector in many different use case scenarios.
+basePath: /api/odbc/v1
+schemes:
+  - http
+  - https
 paths:
-  /schema:
+  /requestdb:
     get:
       responses:
         '200':
           description: ''
-      summary: Get Schema of the database
-      description: " \tGet Schema of the database"
       produces:
         - application/json
-      consumes:
-        - application/json
       parameters:
-        - name: dbName
+        - name: request
           in: query
           required: true
           type: string
-        - name: username
-          in: query
-          required: true
-          type: string
-        - name: password
-          in: query
-          required: true
-          type: string
-        - name: ipAdress
-          in: query
-          required: true
-          type: string
-        - name: portNumber
-          in: query
-          required: true
-          type: string
-      x-auth-type: None
-      x-throttling-tier: Unlimited
-info:
-  title: OdbcConnector
-  version: v1
-  description: >-
-    The ODBC Connector allows the exchange of data with databases running on
-    premise using a standard ODBC API. The ODBC standard provides database
-    independence allowing the re-use of this API Connector in many different use
-    case scenarios.
-basePath: /OdbcConnector/v1
-host: '159.84.110.177:8243'
-schemes:
-  - https
-  - http
+          description: SQL Request
+  /dbSchema:
+    get:
+      responses:
+        '200':
+          description: ''
+      description: get DB Schema