This service looks up a barcode by UPC id. It connects with a SOAP service, takes a mixed SOAP and CSV response, and returns JSON back to the client, more effectively mobilising the service.
The service will only work with node 4 and above. See package.json for more details.
'List recent searches' endpoint.
'List recent searches' endpoint.
- Response 200 (application/json)
- Body [ "Array of recent barcode searches" ]
'Read Barcode' endpoint.
'Read Barcode' endpoint.
-
Request (application/json)
- Body { "barcode": "9780201896831" }
-
Response 200 (application/json)
- Body [ "Some product data goes here" ]
npm install
All the tests are in the "test/" directory. The cloud app is using mocha as the test runner.
- run unit test:
npm test
- run unit coverage:
npm run coverage