Created
August 29, 2023 14:33
-
-
Save moritztim/1176a76c85cc9a086b6debea9a8b52e0 to your computer and use it in GitHub Desktop.
Manual Webserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, request, jsonify | |
app = Flask(__name__) | |
@app.route('/for_me/', methods=['GET', 'POST', 'PUT', 'PATCH', 'DELETE']) | |
def index(): | |
print(request.json) | |
response = input('Enter your full response as json:\n') | |
return response | |
if __name__ == '__main__': | |
app.run(host='0.0.0.0', port=8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment