generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/OdbcParams.js Diff Switch to side-by-side view
generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.json Diff Switch to side-by-side view
generator-vfos-io/templates/apis/odbc-sample/files/apiComponent/odbcModel.js Diff Switch to side-by-side view
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