-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger-output.json
56 lines (56 loc) · 1.31 KB
/
swagger-output.json
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
{
"swagger": "2.0",
"info": {
"title": "Convert HTML to PDF",
"description": "Microservice for converting HTML files to PDF",
"version": "1.0.0"
},
"host": "localhost:5000",
"basePath": "/",
"schemes": [
"http"
],
"consumes": [
"application/zip"
],
"produces": [
"application/pdf"
],
"paths": {
"/html-pdf": {
"post": {
"tags": [
"Convert"
],
"description": "Convert HTML to PDF",
"produces": [
"application/pdf"
],
"parameters": [
{
"name": "file",
"in": "formData",
"type": "file",
"description": "zip archive containing index.html"
}
],
"responses": {
"200": {
"description": "Conversion completed successfully",
"content": {
"application/pdf": {
"schema": {
"type": "file",
"format": "binary"
}
}
}
},
"400": {
"description": "• Upload a file with the .zip extension\n • File size should be less than 2GB\n • Upload an archive\n • Archive must contain the index.html file\n • Something went wrong..."
}
}
}
}
}
}