HUB
Sign inSign up

dwimberger/qr-api

By dwimberger

•Updated almost 10 years ago

QR decode and encode container using openjdk:alpine and spark-qr.

Image
1

4.3K

dwimberger/qr-api repository overview

⁠QR REST API Container

Simple API that will encode and decode QR 2D barcodes. Based on https://github.com/dwimberger/spark-qr⁠

⁠Docker

  1. Build image docker build -t dwimberger/qr-api .
  2. Run the image with debug using
    docker run -d -p 4567:4567 dwimberger/qr-api

⁠Encode QR code

  curl localhost:4567/qr/`uuidgen` > test.png

⁠Decode QR code

  curl -F "[email protected]" http://localhost:4567/qr

⁠QR Prefix

Use the environment variable QR_PREFIX to generate QR codes with an arbitrary prefix (for example an URL).

Tag summary
Recent tags
Content type
Image
Digest
Size
43.4 MB
Last updated
almost 10 years ago
docker pull dwimberger/qr-api:latest