Besides curl we can use wget command to test our REST API.

Send GET query:

wget 127.0.0.1:5000

Send POST query:

wget --post-data 'url=https://habr.com/ru/post/307140/' 127.0.0.1:5000

Send POST query with params saved in params.txt file

wget --post-file params.txt 127.0.0.1:5000

This will save result in index.html. If you want to output result to terminal use command:

wget -O - -q --post-file params.txt 127.0.0.1:5000

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store