Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from flask import Flask
- from flask import request
- app = Flask(__name__)
- @app.route('/')
- def hello_world():
- return 'Hello, World!'
- @app.route('/lists', methods=["POST"])
- def list_post():
- json_body = request.get_json()
- print(json_body)
- # * this is show query params needs to parsed manually
- print((request.query_string).decode("utf-8"))
- return {
- "resp": [1, 2, 3]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement