forked from js-kyle/aws-lambda-queues
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
39 lines (38 loc) · 859 Bytes
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
openapi: 3.0.3
info:
title: Orders API
version: 1.0.0
paths:
/order:
post:
summary: Create a new order
description: Create a new order
operationId: addOrder
requestBody:
description: Create a new order
content:
application/json:
schema:
$ref: "#/components/schemas/Order"
required: true
responses:
"201":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/Order"
"400":
description: Invalid input
components:
schemas:
Order:
type: object
properties:
quantity:
type: integer
format: int32
example: 7
productId:
type: string
example: "12345"