Created
October 29, 2020 16:16
-
-
Save lbroudoux/0388bd5cdafb6198bf4f5cf7e09456a5 to your computer and use it in GitHub Desktop.
[DispatcherTest OpenAPI] API for DispatcherTests #microcks
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
--- | |
openapi: 3.0.2 | |
info: | |
title: DispatcherTest | |
version: 1.0.0 | |
paths: | |
/tests/{id}: | |
get: | |
responses: | |
"200": | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Test' | |
examples: | |
foo: | |
value: | |
foo: foo | |
bar: foo | |
id: foo | |
bar: | |
value: | |
foo: bar | |
bar: bar | |
id: bar | |
description: Retrieved Test | |
operationId: GetTest | |
summary: Get Test by id | |
parameters: | |
- examples: | |
foo: | |
value: foo | |
bar: | |
value: bar | |
name: id | |
schema: | |
type: string | |
in: path | |
required: true | |
/tests: | |
get: | |
parameters: | |
- examples: | |
zero: | |
value: "0" | |
one: | |
value: "1" | |
name: page | |
description: "" | |
schema: | |
type: integer | |
in: query | |
required: true | |
responses: | |
"200": | |
content: | |
application/json: | |
schema: | |
type: array | |
items: | |
$ref: '#/components/schemas/Test' | |
examples: | |
zero: | |
value: | |
- foo: foo | |
bar: foo | |
id: foo | |
one: | |
value: | |
- foo: bar | |
bar: bar | |
id: bar | |
description: List of Tests | |
operationId: GetTests | |
summary: List Tests | |
/tests/{id}/filter: | |
get: | |
parameters: | |
- examples: | |
foo: | |
value: foo | |
bar: | |
value: bar | |
name: property | |
description: "" | |
schema: | |
type: string | |
in: query | |
required: true | |
responses: | |
"200": | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Test' | |
examples: | |
foo: | |
value: | |
foo: foo | |
id: foo | |
bar: | |
value: | |
bar: bar | |
id: bar | |
description: Get filtered Test | |
operationId: FilterTest | |
summary: Filter Test data | |
parameters: | |
- examples: | |
foo: | |
value: foo | |
bar: | |
value: bar | |
name: id | |
description: Test id | |
schema: | |
type: string | |
in: path | |
required: true | |
components: | |
schemas: | |
Test: | |
title: Root Type for Test | |
description: "" | |
required: | |
- id | |
type: object | |
properties: | |
foo: | |
type: string | |
bar: | |
type: string | |
id: | |
description: "" | |
type: string | |
example: |- | |
{ | |
"id": "foo, | |
"foo": "Foo", | |
"bar": "Bar" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment