ScottyLabs / print-api

Unified printing for CMU on multiple devices.
2 stars 2 forks source link

Print-Scottylabs

Unified printing for CMU on multiple devices.

API format

POST request

Input type Name
text andrew_id
file file
number copies
radio sides [1]

[1] Values must be one of one-sided, two-sided-long-edge, two-sided-short-edge.

JSON response

Success example:

{
  "message": "Successfully printed hello_world.pdf",
  "status_code": 200
}

Failure example:

The status code will default to 400, Bad Request.

{
  "message": "Please submit a valid Andrew ID.",
  "status_code": 400
}