O'Reilly logo
  • Pawel Konieczny thinks this is interesting:

type the following command


Cover of Building Web Applications with Flask


Note that the trailing slash is omitted in the URL for GET all articles and POST. Also, the data sent with POST and PUT must be in JSON format, e.g.: curl -X POST -d '{"title":"API title","content":"API content"}' \ -H "Content-Type: application/json" http://localhost:5000/api/articles