Skip to content

Latest commit

 

History

History

webservice

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

The Simple Web Server with Flask

Prerequisites

  • Server: simvcce, flask
  • Client: requests

Codes

  • The Server: ./webservice/server

  • The Client: client.py

  • The Cycle Data: ./jsonmodel/*.json

The Web Service

Local Web Service

In the terminal of ./webservice/server

python app.py

Remote Web Service

Using the Web Service

In the terminal of ./webservice/

python client.py

or

curl  https://simvcce.herokuapp.com/simvcce -d @./jsonmodel/ivcr_11_1.json --header "Content-Type: application/json"

Note: The URL in the above is Remote Web Service.

References

Flask

Requests