Trying to POST from Postman – getting 405 error in Flask REST API

Solution
curl -X POST -H "Content-Type: application/json" -d '{"title": "GoT"}' http://localhost:80/books/