mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
ProductBarcode: return an array of BarcodeProduct instead of one
This commit is contained in:
@@ -219,7 +219,10 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/repo.ItemCreate"
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/repo.BarcodeProduct"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3093,6 +3096,37 @@
|
||||
"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": {
|
||||
|
||||
@@ -646,6 +646,27 @@ definitions:
|
||||
- TypeNumber
|
||||
- TypeBoolean
|
||||
- TypeTime
|
||||
repo.BarcodeProduct:
|
||||
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
|
||||
type: object
|
||||
repo.Group:
|
||||
properties:
|
||||
createdAt:
|
||||
@@ -1564,7 +1585,9 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/repo.ItemCreate'
|
||||
items:
|
||||
$ref: '#/definitions/repo.BarcodeProduct'
|
||||
type: array
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: Search EAN from Barcode
|
||||
|
||||
Reference in New Issue
Block a user