-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
close body from primay thread to avoid crazy errors
- Loading branch information
1 parent
b5cc7da
commit 6d724b4
Showing
5 changed files
with
65 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package main | ||
|
||
const openapiHTML = ` | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<title>FauxRPC Documentation</title> | ||
<script src="https://unpkg.com/@stoplight/elements@8.3.4/web-components.min.js"></script> | ||
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements@8.3.4/styles.min.css"> | ||
</head> | ||
<body> | ||
<elements-api | ||
apiDescriptionUrl="/fauxrpc.openapi.yaml" | ||
router="hash" | ||
layout="sidebar" | ||
/> | ||
</body> | ||
</html> | ||
` | ||
|
||
type openAPIBaseInfo struct { | ||
Description string `yaml:"description"` | ||
Title string `yaml:"title"` | ||
Version string `yaml:"version"` | ||
} | ||
type openAPIBase struct { | ||
OpenAPI string `yaml:"openapi"` | ||
Info openAPIBaseInfo `yaml:"info"` | ||
} |
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
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