Initialer Commit
This commit is contained in:
10
examples/curl-print-authenticated.sh
Normal file
10
examples/curl-print-authenticated.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
curl -X POST http://localhost:8080/api/print \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Printservice-Token: CHANGE_ME_PRINT_TOKEN" \
|
||||
-d '{
|
||||
"printerAlias":"LABEL_LINE_01",
|
||||
"templateName":"serial_label_zpl",
|
||||
"renderMode":"RAW",
|
||||
"copies":1,
|
||||
"data":{"serialNumber":"SNR000001","partNumber":"A123456"}
|
||||
}'
|
||||
14
examples/rest-print-authenticated-request.http
Normal file
14
examples/rest-print-authenticated-request.http
Normal file
@@ -0,0 +1,14 @@
|
||||
POST http://localhost:8080/api/print
|
||||
Content-Type: application/json
|
||||
X-Printservice-Token: CHANGE_ME_PRINT_TOKEN
|
||||
|
||||
{
|
||||
"printerAlias": "LABEL_LINE_01",
|
||||
"templateName": "serial_label_zpl",
|
||||
"renderMode": "RAW",
|
||||
"copies": 1,
|
||||
"data": {
|
||||
"serialNumber": "SNR000001",
|
||||
"partNumber": "A123456"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user