Skip to content

Commit

Permalink
Update api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
taglioni-r committed Jul 15, 2024
1 parent d195634 commit 25e0f75
Showing 1 changed file with 49 additions and 2 deletions.
51 changes: 49 additions & 2 deletions src/main/resources/interface-specification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ components:
- description
- technology
- mode
- descriptor
properties:
name:
type: string
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -1139,6 +1178,7 @@ components:
- dailyCallsTotal
- agreementApprovalPolicy
- attributes
- docs
type: object
properties:
description:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1513,6 +1557,7 @@ components:
- contentType
- prettyName
- path
- checksum
properties:
id:
type: string
Expand All @@ -1525,6 +1570,8 @@ components:
type: string
path:
type: string
checksum:
type: string
EServiceDescriptor:
type: object
required:
Expand Down

0 comments on commit 25e0f75

Please sign in to comment.