Skip to content

Instantly share code, notes, and snippets.

@Mahoney
Created March 20, 2024 13:11
Show Gist options
  • Save Mahoney/238220d8ae23ad03dbbda90808515586 to your computer and use it in GitHub Desktop.
Save Mahoney/238220d8ae23ad03dbbda90808515586 to your computer and use it in GitHub Desktop.
WireMock Cloud workshop OpenAPI
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