-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
177438c
commit bd82b50
Showing
5 changed files
with
93 additions
and
0 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,26 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: 1.0.0 | ||
title: API | ||
tags: | ||
- name: test | ||
description: a test tag | ||
paths: | ||
/foo: | ||
post: | ||
operationId: postFoo | ||
summary: Super post op | ||
tags: | ||
- test | ||
responses: | ||
'201': | ||
$ref: 'responses.yaml#/components/responses/Post201' | ||
/bar: | ||
post: | ||
operationId: postBar | ||
summary: Super post op | ||
tags: | ||
- test | ||
responses: | ||
'201': | ||
$ref: 'responses.yaml#/components/responses/Post201' |
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 @@ | ||
#preserveMiro: false |
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,36 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: 1.0.0 | ||
title: API | ||
tags: | ||
- name: test | ||
description: a test tag | ||
paths: | ||
/foo: | ||
post: | ||
operationId: postFoo | ||
summary: Super post op | ||
tags: | ||
- test | ||
responses: | ||
'201': | ||
description: Success post | ||
content: | ||
application/json: | ||
schema: | ||
title: XYZ | ||
description: this is xyz | ||
type: object | ||
properties: | ||
id: | ||
description: the local identifier (not necessarily globally unique) | ||
type: string | ||
/bar: | ||
post: | ||
operationId: postBar | ||
summary: Super post op | ||
tags: | ||
- test | ||
responses: | ||
'201': | ||
$ref: '#/paths/~1foo/post/responses/201' |
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,14 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: '1.0' | ||
title: Common Response schemas | ||
description: Response definitions commonly used in API-docs in a separate reference file | ||
paths: {} | ||
components: | ||
responses: | ||
Post201: | ||
description: Success post | ||
content: | ||
application/json: | ||
schema: | ||
$ref: 'schemas.yaml#/components/schemas/xyz' |
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,16 @@ | ||
openapi: 3.0.0 | ||
info: | ||
version: '1.0' | ||
title: Common Message/JSON schemas | ||
description: Message schemas / JSON datatypes commonly used in API-docs in a separate reference file | ||
paths: {} | ||
components: | ||
schemas: | ||
xyz: | ||
title: XYZ | ||
description: this is xyz | ||
type: object | ||
properties: | ||
id: | ||
description: the local identifier (not necessarily globally unique) | ||
type: string |