-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Julien Robert <julien@rbrt.fr>
- Loading branch information
1 parent
36e0cbe
commit 4ab1af5
Showing
5 changed files
with
2,074 additions
and
2,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
package docs | ||
|
||
import "embed" | ||
import ( | ||
"embed" | ||
"io/fs" | ||
) | ||
|
||
//go:embed swagger-ui | ||
var SwaggerUI embed.FS | ||
|
||
// GetSwaggerFS returns the embedded Swagger UI filesystem | ||
func GetSwaggerFS() fs.FS { | ||
root, err := fs.Sub(SwaggerUI, "swagger-ui") | ||
if err != nil { | ||
panic(err) | ||
} | ||
|
||
return root | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<!doctype html> <!-- Important: must specify --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters --> | ||
<meta charset="utf-8" /> | ||
<!-- Important: rapi-doc uses utf8 characters --> | ||
<script type="module" src="rapidoc-min.js"></script> | ||
</head> | ||
<body> | ||
<rapi-doc spec-url = "swagger.yaml"> </rapi-doc> | ||
<rapi-doc spec-url="swagger.yaml" server-url="http://localhost:1317"> | ||
</rapi-doc> | ||
</body> | ||
</html> |
Oops, something went wrong.