Skip to content

Commit

Permalink
Release 6.2.4 (#651)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
twoplustwoone authored Jul 21, 2020
1 parent 0588b11 commit 8942c2f
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 278 deletions.
3 changes: 2 additions & 1 deletion demo/apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"models/console-445/console-445.raml": "RAML 1.0",
"models/apic-80/apic-80.raml": "RAML 1.0",
"models/apic-83/apic-83.raml": "RAML 1.0",
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
"models/oas-3-api/oas-3-api.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
}
1 change: 1 addition & 0 deletions demo/element/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ApicApplication extends DemoBase {
['data-type-fragment', 'RAML data type fragment'],
['demo-api', 'Demo API'],
['multi-server', 'Multi Server API'],
['oas-3-api', 'OAS 3 API'],
];

this.toggleConsoleMenu = this.toggleConsoleMenu.bind(this);
Expand Down
47 changes: 47 additions & 0 deletions demo/models/oas-3-api/oas-3-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
openapi: '3.0.2'
info:
title: Servers demo API
version: '1.0'

components:
schemas:
Article:
description: Representation of an article with title and body in CommonMark format.
type: object
properties:
id:
type: string
description: The unique ID of this article, generated by the API implementation upon creation of the article.
readOnly: true
title:
description: The title of the article, in CommonMark format.
type: string
minLength: 3

paths:
/default:
description: A default path to the API
get:
summary: "A get method"
responses:
200:
description: Successful response
post:
summary: Add something
requestBody:
content: # Response body
application/json: # Media type
schema:
$ref: "#/components/schemas/Article"
responses:
201:
description: Successful creation
content:
appliication/json:
schema:
allOf:
- $ref: "#/components/schemas/Article"
- type: object
properties:
description:
type: string
Loading

0 comments on commit 8942c2f

Please sign in to comment.