-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82c0c16
commit a221002
Showing
10 changed files
with
385 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: calculation-rule-id | ||
in: path | ||
description: The id of the calculation rule | ||
example: 4711 | ||
required: true | ||
schema: | ||
# Currently there is no option to use integer array as in path parameter, because go server code generation has a bug: | ||
# https://github.com/OpenAPITools/openapi-generator/issues/13029 | ||
# Until the bug is not fixed only simple parameters can be used for rule ids. | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: calculationRuleIds | ||
description: List of calculation rule ids for filtering | ||
in: query | ||
required: false | ||
style: form | ||
explode: false | ||
schema: | ||
type: array | ||
nullable: true | ||
items: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
get: | ||
tags: | ||
- Calculation rules | ||
summary: Information about an calculation rules rule | ||
description: Gets information about an calculation rule. | ||
operationId: getCalculationRuleById | ||
parameters: | ||
- $ref: '../parameters/calculation-rule-id.yaml' | ||
responses: | ||
200: | ||
description: Successfully returned an calculation rule | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/CalculationRule.yaml' | ||
404: | ||
description: Calculation rule with id not found | ||
|
||
delete: | ||
tags: | ||
- Calculation rules | ||
summary: Delete an calculation rule | ||
description: Deletes an calculation rule. | ||
operationId: deleteCalculationRuleById | ||
parameters: | ||
- $ref: '../parameters/calculation-rule-id.yaml' | ||
responses: | ||
204: | ||
description: Successfully deleted the calculation rule | ||
404: | ||
description: Calculation rule with id not found | ||
|
||
put: | ||
tags: | ||
- Calculation rules | ||
summary: Update an calculation rule | ||
description: Update an calculation rule. | ||
operationId: putCalculationRuleById | ||
parameters: | ||
- $ref: '../parameters/calculation-rule-id.yaml' | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/CalculationRule.yaml' | ||
responses: | ||
200: | ||
description: Successfully updated an existing calculation rule | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/CalculationRule.yaml' | ||
404: | ||
description: Calculation rule with id not found |
Oops, something went wrong.