Skip to content

Commit

Permalink
Fix Jobs OpenAPI
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Mezzasalma <claudio.mezzasalma@eurotech.com>
  • Loading branch information
Claudio Mezzasalma authored and Coduz committed Jul 29, 2021
1 parent 396fb6c commit 72dd38f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 20 deletions.
Expand Up @@ -37,3 +37,23 @@ paths:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
delete:
tags:
- Job - Target
summary: Delete a single Job Target
operationId: jobTargetDelete
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: '../job/job.yaml#/components/parameters/jobId'
- $ref: './jobTarget.yaml#/components/parameters/targetId'
responses:
204:
description: The Job Target has been deleted
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Expand Up @@ -46,6 +46,7 @@ paths:
operationId: jobTargetCreate
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: '../job/job.yaml#/components/parameters/jobId'
requestBody:
description: An object containing the properties for the new Job Target to be created
content:
Expand All @@ -68,23 +69,3 @@ paths:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
delete:
tags:
- Job - Target
summary: Delete a single Job Target
operationId: jobTargetDelete
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: '../job/job.yaml#/components/parameters/jobId'
- $ref: './jobTarget.yaml#/components/parameters/targetId'
responses:
204:
description: The Job Target has been deleted
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Expand Up @@ -51,6 +51,7 @@ paths:
operationId: jobTriggerCreate
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- $ref: '../job/job.yaml#/components/parameters/jobId'
requestBody:
description: An object containing the properties for the new Job Trigger to be created
content:
Expand Down

0 comments on commit 72dd38f

Please sign in to comment.