jjangsangy / ExplainToMe

Automatic Web Article Summarizer
Apache License 2.0
412 stars 61 forks source link

JSON API always uses default values, ignoring actual values #13

Closed Cloudmersive closed 6 years ago

Cloudmersive commented 6 years ago

For example:

curl -X POST "https://explaintome.herokuapp.com/api/v1.0/summary" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"url\": \"https://www.technologyreview.com/s/513696/deep-learning/\", \"max_sent\": 0}"

Actually returns the default Wall Street Journal article defined in the code.

jjangsangy commented 6 years ago

Thanks for catching this example. I've updated the api definition on swagger and so everything works.

curl -X POST "https://explaintome-app.herokuapp.com/api/v1.1.1/summary" \
    -H "accept: application/json" \
    -H "Content-Type: application/json" \
    -d '{ "max_sent": 10, "url": "https://www.technologyreview.com/s/513696/deep-learning/"}'