-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
199 lines (193 loc) · 5.7 KB
/
swagger.yaml
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
openapi: 3.0.0
info:
title: Swagger Experience Index Service APIs
version: 1.0.0
description: APIs For Access To OpenLXP Experience Index Service Information
contact:
email: "[email protected]"
license:
name: "Apache License, Version 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0"
servers:
- url: http://localhost:8080/api/
variables: {}
description: XIS LocalHost
paths:
/metadata/:
summary: API to get records based on UUID
description: 'XIS API'
get:
summary: Get Record Based On Unique Record Identifier
description: Get Record Based On Unique Record Identifier
tags:
- "Metadata"
parameters:
- in: query
name: id
description: "Enter Unique ID To Fetch Metadata Record"
schema:
type: string
- in: query
name: provider
description: "Enter Provider Name To Fetch Related Metadata Records"
schema:
type: string
- in: query
name: metadata_key_hash_list
description: "Enter Comma Seperated String of Metadata Key Hash To Fetch Related Metadata Records"
schema:
type: string
responses:
'200': # status code
description: A JSON Array Of Metadata Record/Records
content:
application/json:
schema:
type: array
items:
type: string
'400': # status code
description: Bad Request Sent
'500': # status code
description: Internal Server Error
post:
tags:
- "Metadata"
summary: "Add New Metadata Record"
description: "Add New Metadata Record"
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
username:
type: string
responses:
'201':
description: "New Meadata Record Created"
'400': # status code
description: Bad Request Sent
/metadata/{id}/:
summary: "Enter Unique ID To Fetch Metadata Record"
description: "Enter Unique ID To Fetch Metadata Record"
get:
summary: "Enter Unique ID To Fetch Metadata Record"
description: Enter Unique ID To Fetch Metadata Record
tags:
- "Metadata"
parameters:
- in: path
name: id
description: "Enter Unique ID To Fetch Metadata Record"
schema:
type: string
required: true
responses:
'200': # status code
description: A JSON Array Of Metadata Record/Records
content:
application/json:
schema:
type: array
items:
type: string
'500': # status code
description: Internal Server Error
patch:
tags:
- "Metadata"
summary: "Update/Edit Existing Metadata Record"
description: "Update/Edit Existing Metadata Record"
parameters:
- in: path
name: id
description: "Enter Unique ID To Fetch Metadata Record"
schema:
type: string
required: true
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
username:
type: string
responses:
'200':
description: "JSON Array of Updated Metadata Record"
content:
application/json:
schema:
type: array
items:
type: string
'500': # status code
description: Internal Server Error
/supplemental-data/:
summary: Add New Supplemental Metadata Record
description: ' XIS api'
post:
tags:
- "Supplemental Metadata"
summary: "Add New Supplemental Metadata Record"
description: "Add New Supplemental Metadata Record"
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
username:
type: string
responses:
'201':
description: "New Supplemental Record Created"
'400': # status code
description: Bad Request Sent
/catalogs/:
summary: API to get catelogs list
description: ' Catalogs list'
get:
summary: Get A List Of Record Of Specified Catalogs
description: Get A List Of Record Of Specified Catalogs
tags:
- "Catalogs"
responses:
'200': # status code
description: A JSON Array Of Catalogs Of Specified Provider
content:
application/json:
schema:
type: array
items:
type: string
'400': # status code
description: Bad Request Sent
'500': # status code
description: Internal Server Error
/xis-workflow/:
summary: API to run ETL pipeline in XIS
description: ' XIS api'
get:
summary: Run XIS Workflow
description: Run XIS Workflow
tags:
- "XIS Workflow"
responses:
'200': # status code
description: A JSON Array Of Task ID
content:
application/json:
schema:
type: array
items:
type: string
'400': # status code
description: Bad Request Sent
'500': # status code
description: Internal Server Error