Skip to content

Commit

Permalink
Fix swagger and upgrade to openapi3 (and npm update) (#3366)
Browse files Browse the repository at this point in the history
* fix swagger and upgrade to openapi3, reapply changes of issue #3345

* use nightscout icon for swagger ui
  • Loading branch information
PieterGit authored and sulkaharo committed Mar 13, 2018
1 parent aafc172 commit 744c0c4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@
"shiro-trie": "^0.4.2",
"simple-statistics": "^0.7.0",
"socket.io": "^1.7.4",
"sugar": "^1.5.0",
"sync-exec": "^0.6.2",
"traverse": "^0.6.6",
"uglify-js": "^3.3.11",
"uuid": "^3.2.1",
"style-loader": "^0.20.1",
"swagger-ui": "^3.10.0",
"swagger-ui-dist": "^3.10.0",
"traverse": "^0.6.6",
"uglify-js": "^3.3.11",
"webpack": "^3.11.0"
},
"devDependencies": {
Expand Down
22 changes: 19 additions & 3 deletions static/api-docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@
<title>Swagger UI: Nightscout API</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="swagger-ui-dist/swagger-ui.css" >
<link rel="icon" type="image/png" href="swagger-ui-dist/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="swagger-ui-dist/favicon-16x16.png" sizes="16x16" />
<link rel="apple-touch-icon" sizes="57x57" href="/images/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/images/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="/manifest.json">
<link rel="shortcut icon" href="/images/favicon.ico">
<meta name="msapplication-TileColor" content="#00a300">
<meta name="msapplication-TileImage" content="/images/mstile-144x144.png">
<meta name="msapplication-config" content="/browserconfig.xml">
<style>
html
{
Expand Down Expand Up @@ -57,7 +73,7 @@
<symbol viewBox="0 0 24 24" id="jump-to">
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
</symbol>

<symbol viewBox="0 0 24 24" id="expand">
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
</symbol>
Expand Down

0 comments on commit 744c0c4

Please sign in to comment.