diff --git a/src/main/resources/interface-specification.yml b/src/main/resources/interface-specification.yml index 308db5a..7e2e80d 100644 --- a/src/main/resources/interface-specification.yml +++ b/src/main/resources/interface-specification.yml @@ -1098,6 +1098,7 @@ components: - description - technology - mode + - descriptor properties: name: type: string @@ -1110,7 +1111,9 @@ components: technology: $ref: '#/components/schemas/EServiceTechnology' mode: - $ref: '#/components/schemas/EServiceMode' + $ref: '#/components/schemas/EServiceMode' + descriptor: + $ref: "#/components/schemas/DescriptorSeedForEServiceCreation" UpdateEServiceSeed: type: object required: @@ -1130,7 +1133,43 @@ components: technology: $ref: '#/components/schemas/EServiceTechnology' mode: - $ref: '#/components/schemas/EServiceMode' + $ref: '#/components/schemas/EServiceMode' + DescriptorSeedForEServiceCreation: + required: + - audience + - voucherLifespan + - dailyCallsPerConsumer + - dailyCallsTotal + - agreementApprovalPolicy + type: object + properties: + description: + type: string + minLength: 10 + maxLength: 250 + audience: + type: array + items: + type: string + minLength: 1 + maxLength: 250 + voucherLifespan: + type: integer + format: int32 + minimum: 60 + maximum: 86400 + dailyCallsPerConsumer: + description: "maximum number of daily calls that this descriptor can afford." + type: integer + format: int32 + minimum: 1 + dailyCallsTotal: + description: "total daily calls available for this e-service." + type: integer + format: int32 + minimum: 1 + agreementApprovalPolicy: + $ref: "#/components/schemas/AgreementApprovalPolicy" EServiceDescriptorSeed: required: - audience @@ -1139,6 +1178,7 @@ components: - dailyCallsTotal - agreementApprovalPolicy - attributes + - docs type: object properties: description: @@ -1170,6 +1210,10 @@ components: $ref: '#/components/schemas/AgreementApprovalPolicy' attributes: $ref: '#/components/schemas/AttributesSeed' + docs: + type: array + items: + $ref: "#/components/schemas/CreateEServiceDescriptorDocumentSeed" UpdateEServiceDescriptorSeed: required: - audience @@ -1513,6 +1557,7 @@ components: - contentType - prettyName - path + - checksum properties: id: type: string @@ -1525,6 +1570,8 @@ components: type: string path: type: string + checksum: + type: string EServiceDescriptor: type: object required: