This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
120 lines (120 loc) · 3.37 KB
/
openapi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
openapi: 3.0.0
info:
description: '[DRAFT] Backend API for Folio data loading management'
version: 1.0.0
title: Folio Data Loading Management API
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
/api/status:
get:
summary: A healthcheck endpoint
responses:
'200':
description: The status of the service
/api/dataload_jobs:
get:
summary: Retrieve the list of scheduled data loading jobs
description: Provide a list of jobs to run since the last request
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DataLoadJobsResponse'
'/api/dataload_jobs/{id}':
put:
summary: Update job status
responses:
'204':
description: Accepted
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The dataload_job_id for the job being updated
requestBody:
description: Data payload for job status
content:
application/json:
schema:
$ref: '#/components/schemas/DataLoadJobResult'
components:
schemas:
DataLoadJob:
description: Information used to schedule a data load job in the pipeline
type: object
additionalProperties: true
properties:
id:
type: integer
description: The id of the dataload_job in order to allow for updates
organization_folio_id:
$ref: '#/components/schemas/UUID'
interface_id:
$ref: '#/components/schemas/UUID'
dataload_profile_id:
$ref: '#/components/schemas/UUID'
processing_tasks:
type: array
items:
type: string
filename:
type: string
file_pattern:
type: string
created_by:
type: string
description: The sunetid of the scheduling user
additional_contacts:
type: array
items:
type: string
description: An array of email addresses to include in any notifications.
required:
- id
- organization_folio_id
- dataload_profile_id
DataLoadJobsResponse:
description: List of jobs to be scheduled
type: object
additionalProperties: false
properties:
jobs:
type: array
items:
$ref: '#/components/schemas/DataLoadJob'
DataLoadJobResult:
description: Statistics and results of a data load job
type: object
additionalProperties: false
properties:
organization_folio_id:
$ref: '#/components/schemas/UUID'
dag_run_id:
$ref: '#/components/schemas/UUID'
filename:
type: string
status:
type: string
enum: [queued, in_progress, failed, completed]
required:
- status
UUID:
type: string
pattern: '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'
# the regex above limits the length;
# however, some tools might require explicit settings:
minLength: 36
maxLength: 36
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: http-token-auth
security:
- bearerAuth: []