ExternalBarcodeLookup (#458)

* Changed line 173 to /stock/barcodes/external-lookup/{barcode} fixes grocy/grocy#456

* Changed line 173 to /stock/barcodes/external-lookup/{barcode} fixes grocy/grocy#456 and I changed grocy.openapi.json to reflect the change
This commit is contained in:
beetle442002 2019-12-08 13:46:37 -06:00 committed by Bernd Bestel
parent 709afac1af
commit 275db21740
2 changed files with 3 additions and 3 deletions

View File

@ -2119,7 +2119,7 @@
} }
} }
}, },
"/stock/barcodes/external-lookup": { "/stock/barcodes/external-lookup/{barcode}": {
"get": { "get": {
"summary": "Executes an external barcode lookoup via the configured plugin with the given barcode", "summary": "Executes an external barcode lookoup via the configured plugin with the given barcode",
"tags": [ "tags": [
@ -2127,7 +2127,7 @@
], ],
"parameters": [ "parameters": [
{ {
"in": "query", "in": "path",
"name": "barcode", "name": "barcode",
"required": true, "required": true,
"description": "The barcode to lookup up", "description": "The barcode to lookup up",

View File

@ -173,7 +173,7 @@ $app->group('/api', function()
$this->post('/stock/products/by-barcode/{barcode}/open', '\Grocy\Controllers\StockApiController:OpenProductByBarcode'); $this->post('/stock/products/by-barcode/{barcode}/open', '\Grocy\Controllers\StockApiController:OpenProductByBarcode');
$this->get('/stock/bookings/{bookingId}', '\Grocy\Controllers\StockApiController:StockBooking'); $this->get('/stock/bookings/{bookingId}', '\Grocy\Controllers\StockApiController:StockBooking');
$this->post('/stock/bookings/{bookingId}/undo', '\Grocy\Controllers\StockApiController:UndoBooking'); $this->post('/stock/bookings/{bookingId}/undo', '\Grocy\Controllers\StockApiController:UndoBooking');
$this->get('/stock/barcodes/external-lookup', '\Grocy\Controllers\StockApiController:ExternalBarcodeLookup'); $this->get('/stock/barcodes/external-lookup/{barcode}', '\Grocy\Controllers\StockApiController:ExternalBarcodeLookup');
} }
// Shopping list // Shopping list