Skip to content

Commit

Permalink
allow to upsert a calculation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-goebel committed Mar 20, 2024
1 parent a221002 commit f79cef5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2146,28 +2146,28 @@ paths:
summary: Information about calculation rules
tags:
- Calculation rules
post:
description: Create a new calculation rule.
operationId: postCalculationRule
put:
description: Creates a new or updates an existing calculation rule.
operationId: putCalculationRule
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CalculationRule'
required: true
responses:
"201":
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/CalculationRule'
description: Successfully created a new calculation rule
summary: Create an calculation rule
description: Successfully created or updated a calculation rule
summary: Creates or updates a calculation rule
tags:
- Calculation rules
/calculation-rules/{calculation-rule-id}:
delete:
description: Deletes an calculation rule.
description: Deletes a calculation rule.
operationId: deleteCalculationRuleById
parameters:
- description: The id of the calculation rule
Expand All @@ -2182,11 +2182,11 @@ paths:
description: Successfully deleted the calculation rule
"404":
description: Calculation rule with id not found
summary: Delete an calculation rule
summary: Delete a calculation rule
tags:
- Calculation rules
get:
description: Gets information about an calculation rule.
description: Gets information about a calculation rule.
operationId: getCalculationRuleById
parameters:
- description: The id of the calculation rule
Expand All @@ -2202,14 +2202,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/CalculationRule'
description: Successfully returned an calculation rule
description: Successfully returned ancalculation rule
"404":
description: Calculation rule with id not found
summary: Information about an calculation rules rule
summary: Information about a calculation rules rule
tags:
- Calculation rules
put:
description: Update an calculation rule.
description: Update a calculation rule.
operationId: putCalculationRuleById
parameters:
- description: The id of the calculation rule
Expand All @@ -2234,7 +2234,7 @@ paths:
description: Successfully updated an existing calculation rule
"404":
description: Calculation rule with id not found
summary: Update an calculation rule
summary: Update a calculation rule
tags:
- Calculation rules
/alarms:
Expand Down
14 changes: 7 additions & 7 deletions paths/calculation-rules-id.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
get:
tags:
- Calculation rules
summary: Information about an calculation rules rule
description: Gets information about an calculation rule.
summary: Information about a calculation rules rule
description: Gets information about a calculation rule.
operationId: getCalculationRuleById
parameters:
- $ref: '../parameters/calculation-rule-id.yaml'
responses:
200:
description: Successfully returned an calculation rule
description: Successfully returned ancalculation rule
content:
application/json:
schema:
Expand All @@ -19,8 +19,8 @@ get:
delete:
tags:
- Calculation rules
summary: Delete an calculation rule
description: Deletes an calculation rule.
summary: Delete a calculation rule
description: Deletes a calculation rule.
operationId: deleteCalculationRuleById
parameters:
- $ref: '../parameters/calculation-rule-id.yaml'
Expand All @@ -33,8 +33,8 @@ delete:
put:
tags:
- Calculation rules
summary: Update an calculation rule
description: Update an calculation rule.
summary: Update a calculation rule
description: Update a calculation rule.
operationId: putCalculationRuleById
parameters:
- $ref: '../parameters/calculation-rule-id.yaml'
Expand Down
12 changes: 6 additions & 6 deletions paths/calculation-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ get:
items:
$ref: '../schemas/CalculationRule.yaml'

post:
put:
tags:
- Calculation rules
summary: Create an calculation rule
description: Create a new calculation rule.
operationId: postCalculationRule
summary: Creates or updates a calculation rule
description: Creates a new or updates an existing calculation rule.
operationId: putCalculationRule
requestBody:
required: true
content:
application/json:
schema:
$ref: '../schemas/CalculationRule.yaml'
responses:
201:
description: Successfully created a new calculation rule
200:
description: Successfully created or updated a calculation rule
content:
application/json:
schema:
Expand Down

0 comments on commit f79cef5

Please sign in to comment.