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 40 41 42 43 44 45 46 47 48 49 50
|
openapi: 3.0.1
info:
title: Proof-of-Concept
servers:
- url: http://127.0.0.1:5000/
- url: https://127.0.0.1:5000/
paths:
/product:
post:
tags:
- Product
summary: Add a new product
description: Create new product listings.
operationId: addProduct
requestBody:
description: Product object to be added to your catalog
content:
application/json:
schema:
$ref: '#/components/schemas/RawItem'
required: true
responses:
200:
description: Product created
content: {}
405:
description: Invalid input
content: {}
501:
description: Not Yet Implemented
content: {}
x-codegen-request-body-name: body
components:
schemas:
RawItem:
type: object
required:
- upc
properties:
id:
type: integer
format: int32
itemNumber:
type: string
description: Your unique code pertaining only to this product
example: 1006-10
upc:
type: integer
description: Universal Product Code
format: int32
|