Skip to content

Commit

Permalink
New path to get the pipeline outputs.
Browse files Browse the repository at this point in the history
Addresses #97
  • Loading branch information
orviz committed Nov 22, 2021
1 parent d26a4dc commit bf40bd5
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 3 deletions.
10 changes: 9 additions & 1 deletion build/dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/Badge'
$ref: '#/components/schemas/CriterionOutput'
'400':
description: Invalid pipeline ID supplied
'404':
Expand Down Expand Up @@ -1064,6 +1064,14 @@ components:
required:
- upstream_status
- upstream_reason
CriterionOutput:
type: object
properties:
id:
type: string
example: QC.Sty
stdout:
type: string
Badge:
type: object
properties:
Expand Down
7 changes: 7 additions & 0 deletions openapi/components/schemas/CriterionOutput.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type: object
properties:
id:
type: string
example: QC.Sty
stdout:
type: string
2 changes: 2 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ paths:
$ref: paths/pipeline_compressed_files.yaml
/pipeline/{pipeline_id}/badge:
$ref: paths/pipeline_badge.yaml
/pipeline/{pipeline_id}/output:
$ref: paths/pipeline_output.yaml
4 changes: 2 additions & 2 deletions openapi/paths/pipeline_badge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ get:
schema:
type: string
- in: query
name: share
name: share
description: Returns the shared version of the badge in a specific format
required: false
schema:
Expand All @@ -52,7 +52,7 @@ get:
schema:
type: array
items:
$ref: '../components/schemas/Badge.yaml'
$ref: '../components/schemas/CriterionOutput.yaml'
'400':
description: Invalid pipeline ID supplied
'404':
Expand Down
25 changes: 25 additions & 0 deletions openapi/paths/pipeline_output.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
get:
operationId: get_pipeline_output
summary: Get output from pipeline execution
parameters:
- in: path
name: pipeline_id
description: ID of the pipeline to get
required: true
schema:
type: string
description: >
Returns the console output from the pipeline execution.
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: array
items:
$ref: '../components/schemas/CriterionOutput.yaml'
'400':
description: Invalid pipeline ID supplied
'404':
description: Pipeline not found

0 comments on commit bf40bd5

Please sign in to comment.