-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
53 lines (50 loc) · 1.42 KB
/
openapi.yaml
File metadata and controls
53 lines (50 loc) · 1.42 KB
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
openapi: 3.0.0
info:
title: Fairness Service
version: 1.0.0
description: API for the Fairness Service
paths:
/explain_fairness/file:
post:
summary: Upload and process a CSV file to explain fairness
operationId: uploadFile
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
responses:
"200":
description: Successful file upload and processing
content:
application/json:
schema:
type: object
properties:
message:
type: string
fairness_summary:
type: object # You may need to adjust this based on your actual response structure
"400":
description: Bad request
content:
application/json:
schema:
type: object
properties:
detail:
type: string
"500":
description: Internal server error
content:
application/json:
schema:
type: object
properties:
detail:
type: string