ProductBarcode: return an array of BarcodeProduct instead of one

This commit is contained in:
Crumb Owl
2025-07-02 11:54:24 +02:00
parent 09f29d82f4
commit a3c13a8a74
8 changed files with 197 additions and 36 deletions

View File

@@ -221,7 +221,10 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/repo.ItemCreate"
"type": "array",
"items": {
"$ref": "#/definitions/repo.BarcodeProduct"
}
}
}
}
@@ -3095,6 +3098,37 @@ const docTemplate = `{
"TypeTime"
]
},
"repo.BarcodeProduct": {
"type": "object",
"properties": {
"barcode": {
"type": "string"
},
"imageBase64": {
"type": "string"
},
"imageURL": {
"type": "string"
},
"item": {
"$ref": "#/definitions/repo.ItemCreate"
},
"manufacturer": {
"type": "string"
},
"modelNumber": {
"description": "Identifications",
"type": "string"
},
"notes": {
"description": "Extras",
"type": "string"
},
"search_engine_name": {
"type": "string"
}
}
},
"repo.Group": {
"type": "object",
"properties": {