[email protected]
[email protected]
REST API build with Python and Flask
For requests Postman was used
to start the server start "run_server.py"
localhost: http://127.0.0.1:5000/
#Get
http://127.0.0.1:5000/swe/numberprediction/rest/data/v1.0/json/en/<model>?filter=<yourfilterhere>
form-data file:<yourfilehere>
filters:
what_is_this_number // returns just the predicted Number
what_is_this_number_probability // returns the predicted Number with probability
what_is_this_numbers_probabilities // returns all Numbers with probabilities
#Post
http://127.0.0.1:5000/swe/numberprediction/rest/data/v1.0/json/en/<model>
#Delete
http://127.0.0.1:5000/swe/numberprediction/rest/data/v1.0/json/en/<model>