From the Flask-Restless documentation...
By default, the API for Person, in the above code samples, will be accessible at
http://<host>:<port>/api/person
, where the person part of the URL is the value ofPerson.__tablename__
:
My guess is that by default, these frameworks do not set up an endpoint on the path /
. They only have endpoints defined for paths related to actual objects in your API. Try the following...
curl -i http://127.0.0.1:5000/api/person
curl -i http://127.0.0.1:5000/person
These URLs might actually hit your endpoints that you're defining.