What can You Learn in this Course?
API development case (data processing)
Course Content
API Development Case (Data Processing)
from flask import Flask, request import jsonapp = Flask(__name__) @app.route('/test/', methods=['POST']) #Because Jodoo only accepts POST requests def hello_world(): alldata = json.loads(request.data) x = alldata['data']['x'] y = alldata['data']['y'] z = alldata['data']['z'] if x==10: print(x*y*z) return 'success',200if __name__ == '__main__': app.run(host='0.0.0.0',port=3100)
I have finished reading. 🏆
👉I can't wait to USE THE API.
👉I need more HELP in Discord Forum.