ProductBarcode: rename API call from getproductfromean to products/search-from-barcode

This commit is contained in:
Crumb Owl
2025-07-02 22:58:42 +02:00
parent 24923f2a83
commit 4a4bf9a175
11 changed files with 162 additions and 154 deletions

View File

@@ -195,41 +195,6 @@ const docTemplate = `{
}
}
},
"/v1/getproductfromean": {
"get": {
"security": [
{
"Bearer": []
}
],
"produces": [
"application/json"
],
"tags": [
"Items"
],
"summary": "Search EAN from Barcode",
"parameters": [
{
"type": "string",
"description": "barcode to be searched",
"name": "data",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/repo.BarcodeProduct"
}
}
}
}
}
},
"/v1/groups": {
"get": {
"security": [
@@ -1846,6 +1811,41 @@ const docTemplate = `{
}
}
},
"/v1/products/search-from-barcode": {
"get": {
"security": [
{
"Bearer": []
}
],
"produces": [
"application/json"
],
"tags": [
"Items"
],
"summary": "Search EAN from Barcode",
"parameters": [
{
"type": "string",
"description": "barcode to be searched",
"name": "data",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/repo.BarcodeProduct"
}
}
}
}
}
},
"/v1/qrcode": {
"get": {
"security": [