Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions examples/API/restAPIs/printAPI/printapi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## print API

## view available printers
printer.list() //gets the list of all available printers

##create a printing job
arguments: The table containing the ordered items and the cash needed to pay
return: Job ID

##send a printing job to the printer
arguments: printer ID
Bill details
The table containing the ordered items and the cash needed to pay
return: Prints the bill

##view job queue status of a printer
Create a job queue
arguments: Job ID
Printer ID
Return value from the printing job function
return: Job ID
21 changes: 21 additions & 0 deletions printapi.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## print API

## view available printers
printer.list() //gets the list of all available printers

##create a printing job
arguments: The table containing the ordered items and the cash needed to pay
return: Job ID

##send a printing job to the printer
arguments: printer ID
Bill details
The table containing the ordered items and the cash needed to pay
return: Prints the bill

##view job queue status of a printer
Create a job queue
arguments: Job ID
Printer ID
Return value from the printing job function
return: Job ID