Skip to content

Instantly share code, notes, and snippets.

@jccguimaraes
Created February 27, 2019 00:56
Show Gist options
  • Save jccguimaraes/96d9a15d7b00753cde538df64b4e7925 to your computer and use it in GitHub Desktop.
Save jccguimaraes/96d9a15d7b00753cde538df64b4e7925 to your computer and use it in GitHub Desktop.
Content of `./open-api/paths/capture.yaml`:
summary: Capture an amount
tags:
- capture
operationId: capturePost
parameters:
- $ref: '../components/parameters/authorization-id.yaml'
- $ref: '../components/parameters/x-correlation-id.yaml'
requestBody:
content:
application/json:
schema:
$ref: '../components/schemas/capture.yaml'
responses:
'200':
$ref: '../components/responses/capture-200.yaml'
'422':
$ref: '../components/responses/capture-422.yaml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment