-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
47 lines (43 loc) · 3.16 KB
/
index.html
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>Aqueduct OpenAPI Client</title>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3.12.1/swagger-ui.css">
</head>
<body>
<div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist@3.12.1/swagger-ui-standalone-preset.js"></script>
<script src="https://unpkg.com/swagger-ui-dist@3.12.1/swagger-ui-bundle.js"></script>
<script>
window.onload = function() {
const ui = SwaggerUIBundle({
spec: {"openapi":"3.0.0",
"info":{"title":"Celulas,Bacterias e Virus","description":"Celulas Presentes No Corpo Humano.","version":"0.0.1"},
"servers":[{"url":"https://humancells.herokuapp.com/"}],
"paths":{"/":{"parameters":[],"get":{"tags":["Cell_controller"],"operationId":"getAllCells","parameters":[],"responses":{"200":{"description":"Successful response."}}},
"post":{"tags":["Cell_controller"],"operationId":"addCell","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cell"}}}},
"responses":{"200":{"description":"Successful response."}}}},"/{id}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],
"get":{"tags":["Cell_controller"],"operationId":"getCellById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],
"responses":{"200":{"description":"Successful response."}}},
"put":{"tags":["Cell_controller"],"operationId":"updateCell","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cell"}}}},
"responses":{"200":{"description":"Successful response."}}},
"delete":{"tags":["Cell_controller"],"operationId":"deleteCell","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer"}}],
"responses":{"200":{"description":"Successful response."}}}},"/comoUsar":{"parameters":[]}},"components":{"schemas":{"Cell":{"title":"Cell","type":"object","properties":{"id":{"title":"id","type":"integer","description":"This is the primary identifier for this object.\n","nullable":false},
"name":{"title":"name","type":"string","description":"No two objects may have the same value for this field.\n","nullable":false},"role":{"title":"role","maxLength":199,"type":"string","nullable":false},"faction":{"title":"faction","type":"string","nullable":false},"imageurl":{"title":"imageurl","type":"string","nullable":false}},"description":""}},"responses":{},"parameters":{},"requestBodies":{},"headers":{},"securitySchemes":{},"callbacks":{}}},
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
})
window.ui = ui
}
</script>
</body>
</html>