fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use GET-based API instead of POST

steren opened this issue · comments

commented

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,