Skip to content
This repository was archived by the owner on Jul 9, 2020. It is now read-only.
Rafael Gumieri edited this page Sep 3, 2017 · 1 revision

API Usage

GET

Using query string to inform the URL will be used to access the address and converted it to PDF:

# data not url-encoded
http://localhost:8080?url=http://address
# data url-encoded
http://localhost:8080?url=http%3A%2F%2Faddress

POST / PUT / PATCH

By other methods/verbs is possible to send the data as a JSON or multipart/form-data.

# the bare address
http://localhost:8080

An example of the payload with the url to be converted to PDF:

{
  "url": "http://address"
}

An example of a curl request sending an html file to be converted to PDF:

curl -X POST \
  http://localhost:8080/ \
  -H 'cache-control: no-cache' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F 'html=@/example'

Clone this wiki locally