Skip to content

Commit ec708de

Browse files
committed
Adds the ability to patch /product/tea_product_identifier
Signed-off-by: Viktor Petersson <self@vpetersson.com>
1 parent 86e563b commit ec708de

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

spec/openapi.json

+29-4
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,36 @@
7070
"properties": {
7171
"product_name": {
7272
"type": "string"
73+
},
74+
"barcode": {
75+
"type": "string",
76+
"description": "Barcode"
77+
},
78+
"sku": {
79+
"type": "string",
80+
"description": "Product SKU"
81+
},
82+
"vendor_uuid": {
83+
"$ref": "#/components/schemas/type_uuid",
84+
"description": "Vendor UUID"
85+
},
86+
"purl": {
87+
"type": "string",
88+
"description": "Package URL (PURL)"
7389
}
74-
},
75-
"required": [
76-
"product_name"
77-
]
90+
}
91+
},
92+
"examples": {
93+
"basic": {
94+
"summary": "Basic product update",
95+
"value": {
96+
"product_name": "Updated Product Name",
97+
"barcode": "123456789012",
98+
"sku": "PROD-001",
99+
"vendor_uuid": "123e4567-e89b-12d3-a456-426614174000",
100+
"purl": "pkg:generic/example@1.0.0"
101+
}
102+
}
78103
}
79104
}
80105
}

0 commit comments

Comments
 (0)