diff --git a/src/index.html b/src/index.html index 5e18af1..77e52cf 100644 --- a/src/index.html +++ b/src/index.html @@ -18,38 +18,38 @@

Terms of usage

-

Because upn-qr.si prohobits the generation and use of UPN-QR codes by any unapthorized party, you must be authorized in order to use this application and publish the content that it generates.

+

Because Public Payments Administration prohibits the generation and use of UPN-QR codes by any unapthorized party, you must be authorized in order to use this application and publish the content that it generates.

API

-

🔗 /api/qrcode

+

🔗 GET /api/qrcode

Following the specification from official documentation - NavodilaZaProgramerjeUPNQR.pdf, section 4. - "Vsebina kode QR"


Query parameters: -
🔗 payer_name
+
🔗 client_name
Regex: ^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
Demo: regex101.com/r/t9EaM3/1
-
🔗 payer_address
+
🔗 client_address
Regex: ^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
Demo: regex101.com/r/JA4wmM/1
-
🔗 payer_city
+
🔗 client_city
Regex: ^[a-zA-Z0-9ČŠŽĐ](?:[A-Z0-9 ČŠŽĐ]{0,31}[A-Z0-9ČŠŽĐ])?$/i
Demo: regex101.com/r/5QMpTn/1
-
🔗 payer_amount
+
🔗 amount
Regex: ^(?=.{11}$)[0]{1,11}[1-9]{0,11}$