Skip to content

Commit 8942c2f

Browse files
Release 6.2.4 (#651)
* chore(models): add more models * feat(deps): reinstall package-lock, bump version * fix(api-documentation): pass down rearrangeEndpoints value * fix(rearrange-endpoints): add fixture & pass variable as ? * fix(rearrange-endpoints): test setters
1 parent 0588b11 commit 8942c2f

File tree

7 files changed

+435
-278
lines changed

7 files changed

+435
-278
lines changed

demo/apis.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"models/console-445/console-445.raml": "RAML 1.0",
1212
"models/apic-80/apic-80.raml": "RAML 1.0",
1313
"models/apic-83/apic-83.raml": "RAML 1.0",
14-
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
14+
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
15+
"models/oas-3-api/oas-3-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
1516
}

demo/element/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class ApicApplication extends DemoBase {
2020
['data-type-fragment', 'RAML data type fragment'],
2121
['demo-api', 'Demo API'],
2222
['multi-server', 'Multi Server API'],
23+
['oas-3-api', 'OAS 3 API'],
2324
];
2425

2526
this.toggleConsoleMenu = this.toggleConsoleMenu.bind(this);
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
openapi: '3.0.2'
2+
info:
3+
title: Servers demo API
4+
version: '1.0'
5+
6+
components:
7+
schemas:
8+
Article:
9+
description: Representation of an article with title and body in CommonMark format.
10+
type: object
11+
properties:
12+
id:
13+
type: string
14+
description: The unique ID of this article, generated by the API implementation upon creation of the article.
15+
readOnly: true
16+
title:
17+
description: The title of the article, in CommonMark format.
18+
type: string
19+
minLength: 3
20+
21+
paths:
22+
/default:
23+
description: A default path to the API
24+
get:
25+
summary: "A get method"
26+
responses:
27+
200:
28+
description: Successful response
29+
post:
30+
summary: Add something
31+
requestBody:
32+
content: # Response body
33+
application/json: # Media type
34+
schema:
35+
$ref: "#/components/schemas/Article"
36+
responses:
37+
201:
38+
description: Successful creation
39+
content:
40+
appliication/json:
41+
schema:
42+
allOf:
43+
- $ref: "#/components/schemas/Article"
44+
- type: object
45+
properties:
46+
description:
47+
type: string

0 commit comments

Comments
 (0)