docs: add OpenAPI documentation
This commit is contained in:
24
openapi/index.html
Normal file
24
openapi/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Recipe API Reference</title>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
<!-- Load the Script -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
|
||||
|
||||
<!-- Initialize the Scalar API Reference -->
|
||||
<script>
|
||||
Scalar.createApiReference("#app", {
|
||||
// The URL of the OpenAPI/Swagger document
|
||||
url: "/recipe-openapi.yaml",
|
||||
hideTestRequestButton: true,
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user