-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
0588b11
commit 8942c2f
Showing
7 changed files
with
435 additions
and
278 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
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
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 |
Oops, something went wrong.