-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
40 lines (40 loc) · 976 Bytes
/
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
swagger: "2.0"
info:
description: "This is an API that can run some Python script on an uploaded file, and return the result of the script back to the requester."
version: "1.0.0"
title: "CSV API"
contact:
email: "jimadness12@gmail.com"
basePath: "/"
tags:
- name: "CSV"
description: "CSV upload"
schemes:
- "http"
paths:
/csv:
post:
tags:
- "csv"
summary: "Process a CSV file"
description: "Process a CSV file and get CSV results"
consumes:
- "multipart/form-data"
produces:
- "text/csv"
parameters:
- in: "formData"
name: "csv"
description: "CSV file to be processed"
type: "file"
required: true
responses:
"400":
description: "Invalid input"
"500":
description: "Internal error while processing file"
"200":
description: "OK"
schema:
type: "string"
format: "csv"