I know that I can make a REST client using curl like this
curl -o out.json http://www.example.com/index.html
Is there a way to make a rest server that send a json file using command line?
i.e. a server listening to curl requests and respond with a json data.
Thanks.