I am following this guide:
http://lua-programming.blogspot.co.uk/
I am at the part where I need to create my API. I have used kong before and have created a script to make an api. The problem is that I cannot create an API. My script is literally a barebone api which has no plugins (want to create an api first):
curl -X POST --url http://localhost:8001/apis/ --data 'name=mock' --data 'upstream_url=https://mockbin.com' --data 'request_host=mockbin.com';
Whenever I run this command, I get a curl: (52) Empty reply from server
error but when I do curl -X GET --url http://localhost:8001/apis
, it tells me how much apis I have currently (which is 0) so surely there is nothing wrong with the server, right?
Ive installed cassandra and kong locally. Any ideas?