Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit d299516

Browse files
authored
✨ Added Swagger UI
2 parents e751bc3 + 01bddce commit d299516

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/swagger-ui.css">
7+
<title>OpenAPI Petstore</title>
8+
<body>
9+
<div id="openapi">
10+
<script src="https://unpkg.com/[email protected]/swagger-ui-bundle.js" crossorigin=""></script>
11+
<script>
12+
window.onload = function () {
13+
const ui = SwaggerUIBundle({
14+
url: "https://raw.githubusercontent.com/Escalar-Alcoia-i-Comtat/Backend/master/openapi.yml",
15+
dom_id: "#openapi"
16+
})
17+
}
18+
</script>
19+
</body>

0 commit comments

Comments
 (0)