Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinZhu committed Nov 9, 2020
1 parent 1a2941e commit 32c0767
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 0 deletions.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="icon" type="image/png" href="images/logo.png"/>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css" >
<style>
html
{
box-sizing: border-box;
overflow: -moz-scrollbars-vertical;
overflow-y: scroll;
}

*,
*:before,
*:after
{
box-sizing: inherit;
}

body
{
margin:0;
background: #fafafa;
}
.errors-wrapper {
display: none !IMPORTANT;
}
</style>
</head>

<body>
<div id="swagger-ui"></div>

<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"> </script>
<script src="https://unpkg.com/swagger-ui-dist@3/swagger-ui-standalone-preset.js"> </script> <script>
window.onload = function() {

// Begin Swagger UI call region
const ui = SwaggerUIBundle({
"dom_id": "#swagger-ui",
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
validatorUrl: "https://validator.swagger.io/validator",
//url: "https://iris-fhir-server.s3.amazonaws.com/openapi/Patient.yml",
urls: [
{url: "openapi/wasedatime-dev-staging-swagger.yaml", name: "wasedatime-dev"},
{url: "openapi/OAS30_biq3vr83u0_prod.yaml", name: "wasedatime-prod"}
],
"urls.primaryName": "wasedatime-dev"
})



window.ui = ui
}
</script>
</body>
</html>
22 changes: 22 additions & 0 deletions openapi/OAS30_biq3vr83u0_prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
openapi: "3.0.1"
info:
title: "wasedatime-prod"
version: "2020-10-29 15:40:46UTC"
servers:
- url: "https://api.wasedatime.com/v1/{basePath}"
variables:
basePath:
default: "prod"
tags:
- name: "name"
paths:
/syllabus:
get:
responses:
default:
description: "Default response for GET /syllabus"
/course-reviews:
post:
responses:
default:
description: "Default response for POST /course-reviews"
Loading

0 comments on commit 32c0767

Please sign in to comment.