-
Notifications
You must be signed in to change notification settings - Fork 284
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
- Loading branch information
Showing
5 changed files
with
135 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src='https://www.googletagmanager.com/gtag/js?id=UA-132775238-1'></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
gtag('js', new Date()); | ||
gtag('config', 'UA-132775238-1'); | ||
</script> | ||
<meta charset='utf-8'> | ||
<meta name='viewport' content='width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes'> | ||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;600&family=Roboto+Mono&display=swap" rel="stylesheet"> | ||
<link href='../index.css' rel='stylesheet'> | ||
<script type='module' src='../rapidoc-min.js'></script> | ||
</head> | ||
<body> | ||
<rapi-doc spec-url="../specs/deprecated-test.yaml" | ||
id = "thedoc" | ||
allow-authentication = "false" | ||
allow-search = "false" | ||
show-info = "false" | ||
show-header = "false" | ||
render-style = "read" | ||
allow-try = "false" | ||
regular-font = 'Open Sans' | ||
mono-font = "Roboto Mono" | ||
theme = "dark" | ||
schema-style='table' | ||
> | ||
<div slot="nav-logo" style="width:100%; display: flex; flex-direction:column;"> | ||
<div style="text-align: center; padding: 0 0 12px 0; color:#47AFE8"> Schema Display Style </div> | ||
<div style="display: flex;justify-content: center; margin: 2px 0"> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'tree')" >Tree</button> | ||
<button class='btn medium' onclick="document.getElementById('thedoc').setAttribute('schema-style', 'table')" >Table</button> | ||
</div> | ||
</div> | ||
</rapi-doc> | ||
</body> | ||
</html> |
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,78 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: test | ||
version: '1.0' | ||
servers: | ||
- url: 'http://localhost:3000' | ||
paths: | ||
/regular-path: | ||
get: | ||
summary: Non Deprecated path | ||
/deprecated-path: | ||
get: | ||
summary: Deprecated path | ||
deprecated: true | ||
parameters: | ||
- name: query-param | ||
in: query | ||
required: true | ||
schema: | ||
type: string | ||
- name: query-param-deprecated | ||
in: query | ||
deprecated: true | ||
schema: | ||
type: string | ||
responses: | ||
'200': | ||
description: Test | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
f1-string: | ||
type: string | ||
f1-string-deprecated: | ||
type: string | ||
deprecated: true | ||
f2-obj-array: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/Foo' | ||
f2-obj-array-deprecated: | ||
type: array | ||
deprecated: true | ||
items: | ||
$ref: '#/components/schemas/Foo' | ||
f3-int-array: | ||
type: array | ||
items: | ||
type: integer | ||
f3-int-array-deprecated: | ||
type: array | ||
deprecated: true | ||
items: | ||
type: integer | ||
f4-object: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
f4-object-deprecated: | ||
type: object | ||
deprecated: true | ||
properties: | ||
id: | ||
type: string | ||
|
||
operationId: get-test | ||
description: Test | ||
components: | ||
schemas: | ||
Foo: | ||
title: Foo | ||
type: object | ||
properties: | ||
id: | ||
type: string |
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