Created
March 20, 2024 13:11
-
-
Save Mahoney/238220d8ae23ad03dbbda90808515586 to your computer and use it in GitHub Desktop.
WireMock Cloud workshop OpenAPI
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
paths: | |
/things/{thingId}: | |
get: | |
description: Get things by thingId. | |
operationId: getThingsByThingId | |
parameters: | |
- name: thingId | |
in: path | |
required: true | |
style: simple | |
explode: false | |
responses: | |
"200": | |
description: A thing | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/thing" | |
post: | |
description: Create thing | |
operationId: createThing | |
responses: | |
"201": | |
description: Created thing | |
content: | |
application/json: | |
schema: | |
$ref: "#/components/schemas/thing" | |
components: | |
schemas: | |
thing: | |
required: | |
- stub | |
type: object | |
properties: | |
stub: | |
type: integer | |
format: int32 | |
example: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment