Skip to content

How to deploy the QR patterns catalogue in the PABRE WS tool

marcoriol edited this page Oct 28, 2019 · 2 revisions

Importing the catalogue from a JSON file

PABRE provides the functionality to import a catalogue from a JSON file.

You can define your own catalogue or use an existing catalogue as the one provided as an example in github at:

https://github.com/q-rapids/qrapids-qr_generation/blob/master/src/main/resources/QRcatalog.json

You can import the catalogue into PABRE by invoking the following endpoint, with the JSON in the body of the message.

[POST] /pabre-ws/api/catalogue/import

If PABRE has already a catalogue installed, the import will override the previous catalogue.

Exporting the catalogue to a JSON file

You can export the current catalogue that you have installed in PABRE by invoking the following endpoint:

[GET] /pabre-ws/api/catalogue/export