Debian Codegraph @

examples/parse_openapi3_json_product_schema.yml

raw symbols SCIP
1 openapi: 3.0.1
2 info:
3 title: Proof-of-Concept
4 servers:
5 - url: http://127.0.0.1:5000/
6 - url: https://127.0.0.1:5000/
7 paths:
8 /product:
9 post:
10 tags:
11 - Product
12 summary: Add a new product
13 description: Create new product listings.
14 operationId: addProduct
15 requestBody:
16 description: Product object to be added to your catalog
17 content:
18 application/json:
19 schema:
20 $ref: '#/components/schemas/RawItem'
21 required: true
22 responses:
23 200:
24 description: Product created
25 content: {}
26 405:
27 description: Invalid input
28 content: {}
29 501:
30 description: Not Yet Implemented
31 content: {}
32 x-codegen-request-body-name: body
33 components:
34 schemas:
35 RawItem:
36 type: object
37 required:
38 - upc
39 properties:
40 id:
41 type: integer
42 format: int32
43 itemNumber:
44 type: string
45 description: Your unique code pertaining only to this product
46 example: 1006-10
47 upc:
48 type: integer
49 description: Universal Product Code
50 format: int32