fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium
1.19k stars 30 forks source link

Use GET-based API instead of POST #31

Open steren opened 1 year ago

steren commented 1 year ago

It seems that the server API expects parameters to be passed as request body

I suggest also support passing them via GET query parameters.

Semantically, this server is not updating any resources, GET sounds appropriate. Also, passing URL parameters would allow to test the service from a browser, or even to create a microservice that could be invoked directly within <img> element,