Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/report/{report_id}/export?inf_token=12345&format=pdf|doc
Info
Retrieves/Modifies a specific report, if no id is given updates the first report found for this user (currently users are only suppose to have 1 report so not sending an id is fine)

...

inf_token (optional)
cookie to use for authentication if need be (for gui use if they can't send the link internally)

format (optional)
output format for the report export, either doc or pdf (defaults to pdf)

Json Object

n/a

Example
Code Block
curl -b cookies.txt -X GET "http://localhost:8185/report/5331abfdb8e06221ba4a3b8a/export?inf_token=123456&format=pdf" > response.txt

 

Example Response
Info
curl -b cookies.txt -X GET "http://localhost:8185/report/5331abfdb8e06221ba4a3b8a/export?inf_token=123456&format=pdf" > response.txt

Code Block
Returns a mediatype=application/pdf file which browsers typically handle