-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13ed12d
commit ce3b72f
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,34 @@ | ||
# Basic Code Example using Gradle | ||
# QRBill generator API | ||
|
||
This minimal code example shows how to generate a QR bill. It uses the Gradle build system. | ||
Available at http://clic.epfl.ch/qrbill-generator. | ||
|
||
### `POST | ||
|
||
#### Request Body | ||
|
||
```json | ||
{ | ||
"account": "CH2304835177498341002", | ||
"amount": 10, | ||
"currency": "CHF", | ||
"message": "Custom message", | ||
"creditor": { | ||
"name": "CLIC", | ||
"street": "Station 14, EPFL", | ||
"houseNo": "", | ||
"postalCode": "1015", | ||
"town": "Lausanne", | ||
"countryCode": "CH" | ||
} | ||
} | ||
``` | ||
|
||
#### Response body | ||
|
||
Returns the QR Bill as a SVG image. | ||
|
||
#### Example with cURL | ||
|
||
``` | ||
curl -X POST https://clic.epfl.ch/qrbill-generator/ -d '{"account":"CH2304835177498341002","amount":10,"currency":"CHF", "message": "Souper de Faculté - Ludovic Mermod","creditor":{"name":"CLIC","street":"Station 14, EPFL","houseNo":"","postalCode":"1015","town":"Lausanne", "countryCode": "CH"}}' | ||
``` |