Home > other >  Using a Python implementation Restfull services
Using a Python implementation Restfull services

Time:01-12


Hello, I want to use Python implementation a Restfull services,
The main interface is what I write can call other Python code, specifically:
1, oneself develop a Python code, placed in a fixed directory,
2, call the service interface, the interface will specify which Python code to invoke, as well as the required parameters,
3, after the server receives the request, with the parameters passed, specified in the Python file method, return the result to the client,
Do you have this aspect of the reference code, or article? Thank you very much!

CodePudding user response:

http://www.pythondoc.com/Flask-RESTful/quickstart.html

With classes encapsulate interface API. Add_resource (Todo, '/todos/& lt; Todo_id & gt; ')

  • Related