cevi / qr-code-generator

Creates QR Codes with the Cevi Logo and colors
1 stars 1 forks source link

QR Code Generator mit Cevi Logo

Dies ist eine einfache API mit Webinterface, das es erlaubt, QR-Codes mit dem Cevi-Logo zu erstellen. QR Codes können als PNG oder SVG erstellt werden und sind in den Farben des Cevi-Logo eingefärbt.

Beispiel eines Cevi-QR-Codes

Die API erstellt QR-Code, die wie folgt aussehen:

Beispiel QR Code

How to use?

You can start the backend container with the following command:

docker-compose up --build

Now you can interact with the webinterface on localhost:80. Or you can directly query the API with the following command:

curl --header "Content-Type: application/json"   --request POST   --data '{"link":"https://cevi.ch"}'   http://localhost:5000/svg > qr_code.svg

Available Endpoints

Currently, the following endpoints are available:

Both endpoints queried using a POST request. With a JSON body containing the qr code parameters:

{

  // always required
  "text": "https://link/to/your/url",

  // optional parameters for the QR code
  "options": {
    "color-scheme": "cevi"  // default is "cevi", other options are "black" and "white"
  }

}