From a9c1855dd6d8dc08f38ba9cf3f4628ebf95974ec Mon Sep 17 00:00:00 2001 From: Bill Li Date: Tue, 16 Jan 2018 12:50:41 -0500 Subject: [PATCH 1/3] Update swagger2.json Fixed a type --- serviceTestManagement/v2/swagger2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serviceTestManagement/v2/swagger2.json b/serviceTestManagement/v2/swagger2.json index d41565b..84904ed 100644 --- a/serviceTestManagement/v2/swagger2.json +++ b/serviceTestManagement/v2/swagger2.json @@ -1173,7 +1173,7 @@ "type": "string", "description": "The number of allowed crossing occurrences in reference to the \ntolerancePeriod without a consequence being initiated." }, - "thresholdRuleSeveri ty": { + "thresholdRuleSeverity": { "type": "string", "description": "A threshold can be generated in different severity levels. A \ncrossing for each level may require a different condition and possibly trigger a different consequence." }, @@ -1275,4 +1275,4 @@ } } } -} \ No newline at end of file +} From eeb17d2738f9b4c8a3bab717451e353797a251c5 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Tue, 16 Jan 2018 14:28:34 -0500 Subject: [PATCH 2/3] Update swagger2.json Converted to JSON --- productOfferingQualification/v2/swagger2.json | 478 +++++++++++------- 1 file changed, 289 insertions(+), 189 deletions(-) diff --git a/productOfferingQualification/v2/swagger2.json b/productOfferingQualification/v2/swagger2.json index 5545ae0..63cd6f9 100644 --- a/productOfferingQualification/v2/swagger2.json +++ b/productOfferingQualification/v2/swagger2.json @@ -1,189 +1,289 @@ -swagger: '2.0' -info: - description: 'This is Swagger UI environment generated for the TMF Enhancement to Product Offering Qualification API specification' - version: '2.0' - title: Product Offering Qualification -host: env-0693795.jelastic.servint.net -basePath: /DSServiceQualification/api/productOfferingQualification/v1 -schemes: - - http -consumes: - - application/json -produces: - - application/json -paths: - /productOfferingQualification: - post: - tags: - - productOfferingQualification - operationId: productOfferingQualificationCreate - summary: productOfferingQualificationCreate - description: '' - deprecated: false - parameters: - - name: productOfferingQualification - in: body - required: true - schema: - $ref: '#/definitions/ProductOfferingQualificationReq' - responses: - '201': - description: serviceQualification - schema: - $ref: '#/definitions/ProductOfferingQualificationReq' - '/productOfferingQualification/{productOfferingQualificationId}': - get: - tags: - - productOfferingQualification - operationId: productOfferingQualificationGet - summary: productOfferingQualificationGet - description: '' - deprecated: false - parameters: - - name: productOfferingQualificationId - in: path - required: true - type: string - - name: fields - in: query - required: false - description: '' - type: string - responses: - '200': - description: serviceQualification - schema: - $ref: '#/definitions/ProductOfferingQualificationReq' -definitions: - ProductOfferingQualificationReq: - type: object - properties: - id: - type: string - eligibilityDate: - type: string - format: date-time - RelatedParty: - type: array - items: - $ref: '#/definitions/RelatedParty' - channel: - type: string - productInventoryId: - type: string - address: - $ref: '#/definitions/AddressReq' - addressDescription: - $ref: '#/definitions/AddressDescriptionReq' - geoCode: - $ref: '#/definitions/GeoCodeReq' - publicKey: - type: string - productOfferingQualificationItem: - type: array - items: - $ref: '#/definitions/ProductOfferingQualificationReqItem' - ProductOfferingQualificationReqItem: - type: object - properties: - productOffering: - $ref: '#/definitions/ProductOfferingReq' - ProductOfferingReq: - type: object - properties: - id: - type: string - href: - type: string - productOfferingCategory: - $ref: '#/definitions/ProductOfferingCategoryReq' - product: - $ref: '#/definitions/ProductReq' - ProductOfferingCategoryReq: - type: object - properties: - id: - type: string - ProductReq: - type: object - properties: - productSpecification: - $ref: '#/definitions/ProductSpecificationReq' - productCharacteristic: - type: array - items: - $ref: '#/definitions/ProductCharacteristicReq' - ProductSpecificationReq: - type: object - properties: - id: - type: string - name: - type: string - version: - type: string - value: - type: string - ProductCharacteristicReq: - type: object - properties: - id: - type: string - name: - type: string - value: - type: string - AddressReq: - type: object - properties: - id: - type: string - href: - type: string - AddressDescriptionReq: - type: object - properties: - streetNr: - type: string - streetNrSuffix: - type: string - streetNrLast: - type: string - streetNrLastSuffix: - type: string - streetName: - type: string - streetType: - type: string - streetSuffix: - type: string - postcode: - type: string - locality: - type: string - city: - type: string - stateOrProvince: - type: string - country: - type: string - GeoCodeReq: - type: object - properties: - latitude: - type: string - longitude: - type: string - geographicDatum: - type: string - RelatedParty: - type: object - properties: - id: - type: string - role: - type: string - href: - type: string - name: - type: string \ No newline at end of file +{ + "swagger": "2.0", + "info": { + "description": "This is Swagger UI environment generated for the TMF Enhancement to Product Offering Qualification API specification", + "version": "2.0", + "title": "Product Offering Qualification" + }, + "host": "env-0693795.jelastic.servint.net", + "basePath": "/DSServiceQualification/api/productOfferingQualification/v1", + "schemes": [ + "http" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/productOfferingQualification": { + "post": { + "tags": [ + "productOfferingQualification" + ], + "operationId": "productOfferingQualificationCreate", + "summary": "productOfferingQualificationCreate", + "description": "", + "deprecated": false, + "parameters": [ + { + "name": "productOfferingQualification", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ProductOfferingQualificationReq" + } + } + ], + "responses": { + "201": { + "description": "serviceQualification", + "schema": { + "$ref": "#/definitions/ProductOfferingQualificationReq" + } + } + } + } + }, + "/productOfferingQualification/{productOfferingQualificationId}": { + "get": { + "tags": [ + "productOfferingQualification" + ], + "operationId": "productOfferingQualificationGet", + "summary": "productOfferingQualificationGet", + "description": "", + "deprecated": false, + "parameters": [ + { + "name": "productOfferingQualificationId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "fields", + "in": "query", + "required": false, + "description": "", + "type": "string" + } + ], + "responses": { + "200": { + "description": "serviceQualification", + "schema": { + "$ref": "#/definitions/ProductOfferingQualificationReq" + } + } + } + } + } + }, + "definitions": { + "ProductOfferingQualificationReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "eligibilityDate": { + "type": "string", + "format": "date-time" + }, + "RelatedParty": { + "type": "array", + "items": { + "$ref": "#/definitions/RelatedParty" + } + }, + "channel": { + "type": "string" + }, + "productInventoryId": { + "type": "string" + }, + "address": { + "$ref": "#/definitions/AddressReq" + }, + "addressDescription": { + "$ref": "#/definitions/AddressDescriptionReq" + }, + "geoCode": { + "$ref": "#/definitions/GeoCodeReq" + }, + "publicKey": { + "type": "string" + }, + "productOfferingQualificationItem": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductOfferingQualificationReqItem" + } + } + } + }, + "ProductOfferingQualificationReqItem": { + "type": "object", + "properties": { + "productOffering": { + "$ref": "#/definitions/ProductOfferingReq" + } + } + }, + "ProductOfferingReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "href": { + "type": "string" + }, + "productOfferingCategory": { + "$ref": "#/definitions/ProductOfferingCategoryReq" + }, + "product": { + "$ref": "#/definitions/ProductReq" + } + } + }, + "ProductOfferingCategoryReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + } + } + }, + "ProductReq": { + "type": "object", + "properties": { + "productSpecification": { + "$ref": "#/definitions/ProductSpecificationReq" + }, + "productCharacteristic": { + "type": "array", + "items": { + "$ref": "#/definitions/ProductCharacteristicReq" + } + } + } + }, + "ProductSpecificationReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "version": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "ProductCharacteristicReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "AddressReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "href": { + "type": "string" + } + } + }, + "AddressDescriptionReq": { + "type": "object", + "properties": { + "streetNr": { + "type": "string" + }, + "streetNrSuffix": { + "type": "string" + }, + "streetNrLast": { + "type": "string" + }, + "streetNrLastSuffix": { + "type": "string" + }, + "streetName": { + "type": "string" + }, + "streetType": { + "type": "string" + }, + "streetSuffix": { + "type": "string" + }, + "postcode": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "city": { + "type": "string" + }, + "stateOrProvince": { + "type": "string" + }, + "country": { + "type": "string" + } + } + }, + "GeoCodeReq": { + "type": "object", + "properties": { + "latitude": { + "type": "string" + }, + "longitude": { + "type": "string" + }, + "geographicDatum": { + "type": "string" + } + } + }, + "RelatedParty": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "role": { + "type": "string" + }, + "href": { + "type": "string" + }, + "name": { + "type": "string" + } + } + } + } +} From ea5bd2612b75dcd85a54b95b0af6d368f2bd9c61 Mon Sep 17 00:00:00 2001 From: Bill Li Date: Tue, 16 Jan 2018 14:29:40 -0500 Subject: [PATCH 3/3] Update swagger2.json Converted to json --- serviceQualification/v2/swagger2.json | 738 ++++++++++++++++---------- 1 file changed, 443 insertions(+), 295 deletions(-) diff --git a/serviceQualification/v2/swagger2.json b/serviceQualification/v2/swagger2.json index 895999d..dbea357 100644 --- a/serviceQualification/v2/swagger2.json +++ b/serviceQualification/v2/swagger2.json @@ -1,295 +1,443 @@ -swagger: '2.0' -info: - description: '' - version: '2.0' - title: API ProductOrdering -host: env-0693795.jelastic.servint.net -basePath: /DSServiceQualification/api/serviceQualification/v1 -schemes: - - http -consumes: - - application/json -produces: - - application/json -paths: - /serviceQualification: - get: - tags: - - serviceQualification - operationId: serviceQualificationFind - summary: serviceQualificationFind - description: '' - deprecated: false - parameters: - - name: fields - in: query - required: false - description: '' - type: string - responses: - '200': - description: List of ServiceQualification - schema: - type: array - items: - $ref: '#/definitions/ServiceQualificationRsp' - post: - tags: - - serviceQualification - operationId: serviceQualificationCreate - summary: serviceQualificationCreate - description: '' - deprecated: false - parameters: - - name: serviceQualification - in: body - required: true - schema: - $ref: '#/definitions/ServiceQualificationReq' - responses: - '201': - description: serviceQualification - schema: - $ref: '#/definitions/ServiceQualificationRsp' - '/serviceQualification/{serviceQualificationId}': - get: - tags: - - serviceQualification - operationId: serviceQualificationGet - summary: serviceQualificationGet - description: '' - deprecated: false - parameters: - - name: serviceQualificationId - in: path - required: true - type: string - - name: fields - in: query - required: false - description: '' - type: string - responses: - '200': - description: serviceQualification - schema: - $ref: '#/definitions/ServiceQualificationRsp' - -definitions: - ServiceQualificationReq: - type: object - properties: - interactionDate: - type: string - format: date-time - provideAlternative: - type: string - provideOnlyEligible: - type: string - description: - type: string - eligibilityDate: - type: string - format: date-time - address: - $ref: '#/definitions/AddressReq' - addressDescription: - $ref: '#/definitions/AddressDescriptionReq' - geoCode: - $ref: '#/definitions/GeoCodeReq' - publicKey: - type: string - serviceQualificationItem: - type: array - items: - $ref: '#/definitions/ServiceQualificationItemReq' - - ServiceQualificationItemReq: - type: object - properties: - service: - $ref: '#/definitions/ServiceReq' - ServiceReq: - type: object - properties: - serviceCharacteristic: - type: array - items: - $ref: '#/definitions/ServiceReqCharacteristic' - serviceSpecification: - $ref: '#/definitions/ServiceSpecificationReq' - ServiceReqCharacteristic: - type: object - properties: - name: - type: string - value: - type: string - ServiceSpecificationReq: - type: object - properties: - id: - type: string - href: - type: string - serviceCategoryId: - type: string - serviceSpecificationCharacteristic: - type: array - items: - $ref: '#/definitions/ServiceSpecificationReqCharacteristic' - ServiceSpecificationReqCharacteristic: - type: object - properties: - id: - type: string - name: - type: string - valuefrom: - type: string - valueto: - type: string - ServiceQualificationRsp: - type: object - properties: - id: - type: integer - format: int64 - href: - type: string - interactionDate: - type: string - format: date-time - provideAlternative: - type: string - provideOnlyEligible: - type: string - description: - type: string - eligibilityDate: - type: string - format: date-time - qualificationState: - type: string - enum: - - InProgress - - Done - - TerminatedWithError - address: - $ref: '#/definitions/AddressReq' - addressDescription: - $ref: '#/definitions/AddressDescriptionReq' - geoCode: - $ref: '#/definitions/GeoCodeReq' - publicKey: - type: string - physicalTerminationPoint: - type: array - items: - $ref: '#/definitions/AccessTypeRsp' - serviceQualificationItem: - type: array - items: - $ref: '#/definitions/ServiceQualificationItemRsp' - ServiceQualificationItemRsp: - type: object - properties: - service: - $ref: '#/definitions/ServiceRsp' - alternativeService: - type: array - items: - $ref: '#/definitions/ServiceRsp' - availability: - type: string - serviceabilityDate: - type: string - format: date-time - ServiceRsp: - type: object - properties: - serviceCharacteristic: - type: array - items: - $ref: '#/definitions/ServiceRspCharacteristic' - serviceSpecification: - $ref: '#/definitions/ServiceSpecification' - ServiceRspCharacteristic: - type: object - properties: - name: - type: string - value: - type: string - ServiceSpecification: - type: object - properties: - id: - type: string - href: - type: string - serviceCategoryId: - type: string - serviceSpecificationCharacteristic: - type: array - items: - $ref: '#/definitions/ServiceSpecificationCharacteristic' - ServiceSpecificationCharacteristic: - type: object - properties: - id: - type: string - name: - type: string - valuefrom: - type: string - valueto: - type: string - AccessTypeRsp: - type: object - properties: - accessType: - type: string - AddressReq: - type: object - properties: - id: - type: string - href: - type: string - AddressDescriptionReq: - type: object - properties: - streetNr: - type: string - streetNrSuffix: - type: string - streetNrLast: - type: string - streetNrLastSuffix: - type: string - streetName: - type: string - streetType: - type: string - streetSuffix: - type: string - postcode: - type: string - locality: - type: string - city: - type: string - stateOrProvince: - type: string - country: - type: string - GeoCodeReq: - type: object - properties: - latitude: - type: string - longitude: - type: string - geographicDatum: - type: string \ No newline at end of file +{ + "swagger": "2.0", + "info": { + "description": "", + "version": "2.0", + "title": "API ProductOrdering" + }, + "host": "env-0693795.jelastic.servint.net", + "basePath": "/DSServiceQualification/api/serviceQualification/v1", + "schemes": [ + "http" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/serviceQualification": { + "get": { + "tags": [ + "serviceQualification" + ], + "operationId": "serviceQualificationFind", + "summary": "serviceQualificationFind", + "description": "", + "deprecated": false, + "parameters": [ + { + "name": "fields", + "in": "query", + "required": false, + "description": "", + "type": "string" + } + ], + "responses": { + "200": { + "description": "List of ServiceQualification", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceQualificationRsp" + } + } + } + } + }, + "post": { + "tags": [ + "serviceQualification" + ], + "operationId": "serviceQualificationCreate", + "summary": "serviceQualificationCreate", + "description": "", + "deprecated": false, + "parameters": [ + { + "name": "serviceQualification", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ServiceQualificationReq" + } + } + ], + "responses": { + "201": { + "description": "serviceQualification", + "schema": { + "$ref": "#/definitions/ServiceQualificationRsp" + } + } + } + } + }, + "/serviceQualification/{serviceQualificationId}": { + "get": { + "tags": [ + "serviceQualification" + ], + "operationId": "serviceQualificationGet", + "summary": "serviceQualificationGet", + "description": "", + "deprecated": false, + "parameters": [ + { + "name": "serviceQualificationId", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "fields", + "in": "query", + "required": false, + "description": "", + "type": "string" + } + ], + "responses": { + "200": { + "description": "serviceQualification", + "schema": { + "$ref": "#/definitions/ServiceQualificationRsp" + } + } + } + } + } + }, + "definitions": { + "ServiceQualificationReq": { + "type": "object", + "properties": { + "interactionDate": { + "type": "string", + "format": "date-time" + }, + "provideAlternative": { + "type": "string" + }, + "provideOnlyEligible": { + "type": "string" + }, + "description": { + "type": "string" + }, + "eligibilityDate": { + "type": "string", + "format": "date-time" + }, + "address": { + "$ref": "#/definitions/AddressReq" + }, + "addressDescription": { + "$ref": "#/definitions/AddressDescriptionReq" + }, + "geoCode": { + "$ref": "#/definitions/GeoCodeReq" + }, + "publicKey": { + "type": "string" + }, + "serviceQualificationItem": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceQualificationItemReq" + } + } + } + }, + "ServiceQualificationItemReq": { + "type": "object", + "properties": { + "service": { + "$ref": "#/definitions/ServiceReq" + } + } + }, + "ServiceReq": { + "type": "object", + "properties": { + "serviceCharacteristic": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceReqCharacteristic" + } + }, + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecificationReq" + } + } + }, + "ServiceReqCharacteristic": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "ServiceSpecificationReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "href": { + "type": "string" + }, + "serviceCategoryId": { + "type": "string" + }, + "serviceSpecificationCharacteristic": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceSpecificationReqCharacteristic" + } + } + } + }, + "ServiceSpecificationReqCharacteristic": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "valuefrom": { + "type": "string" + }, + "valueto": { + "type": "string" + } + } + }, + "ServiceQualificationRsp": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "href": { + "type": "string" + }, + "interactionDate": { + "type": "string", + "format": "date-time" + }, + "provideAlternative": { + "type": "string" + }, + "provideOnlyEligible": { + "type": "string" + }, + "description": { + "type": "string" + }, + "eligibilityDate": { + "type": "string", + "format": "date-time" + }, + "qualificationState": { + "type": "string", + "enum": [ + "InProgress", + "Done", + "TerminatedWithError" + ] + }, + "address": { + "$ref": "#/definitions/AddressReq" + }, + "addressDescription": { + "$ref": "#/definitions/AddressDescriptionReq" + }, + "geoCode": { + "$ref": "#/definitions/GeoCodeReq" + }, + "publicKey": { + "type": "string" + }, + "physicalTerminationPoint": { + "type": "array", + "items": { + "$ref": "#/definitions/AccessTypeRsp" + } + }, + "serviceQualificationItem": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceQualificationItemRsp" + } + } + } + }, + "ServiceQualificationItemRsp": { + "type": "object", + "properties": { + "service": { + "$ref": "#/definitions/ServiceRsp" + }, + "alternativeService": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceRsp" + } + }, + "availability": { + "type": "string" + }, + "serviceabilityDate": { + "type": "string", + "format": "date-time" + } + } + }, + "ServiceRsp": { + "type": "object", + "properties": { + "serviceCharacteristic": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceRspCharacteristic" + } + }, + "serviceSpecification": { + "$ref": "#/definitions/ServiceSpecification" + } + } + }, + "ServiceRspCharacteristic": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "ServiceSpecification": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "href": { + "type": "string" + }, + "serviceCategoryId": { + "type": "string" + }, + "serviceSpecificationCharacteristic": { + "type": "array", + "items": { + "$ref": "#/definitions/ServiceSpecificationCharacteristic" + } + } + } + }, + "ServiceSpecificationCharacteristic": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "valuefrom": { + "type": "string" + }, + "valueto": { + "type": "string" + } + } + }, + "AccessTypeRsp": { + "type": "object", + "properties": { + "accessType": { + "type": "string" + } + } + }, + "AddressReq": { + "type": "object", + "properties": { + "id": { + "type": "string" + }, + "href": { + "type": "string" + } + } + }, + "AddressDescriptionReq": { + "type": "object", + "properties": { + "streetNr": { + "type": "string" + }, + "streetNrSuffix": { + "type": "string" + }, + "streetNrLast": { + "type": "string" + }, + "streetNrLastSuffix": { + "type": "string" + }, + "streetName": { + "type": "string" + }, + "streetType": { + "type": "string" + }, + "streetSuffix": { + "type": "string" + }, + "postcode": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "city": { + "type": "string" + }, + "stateOrProvince": { + "type": "string" + }, + "country": { + "type": "string" + } + } + }, + "GeoCodeReq": { + "type": "object", + "properties": { + "latitude": { + "type": "string" + }, + "longitude": { + "type": "string" + }, + "geographicDatum": { + "type": "string" + } + } + } + } +}