Skip to content

Instantly share code, notes, and snippets.

@moritz-t-w
Created August 29, 2023 14:33
Show Gist options
  • Save moritz-t-w/1176a76c85cc9a086b6debea9a8b52e0 to your computer and use it in GitHub Desktop.
Save moritz-t-w/1176a76c85cc9a086b6debea9a8b52e0 to your computer and use it in GitHub Desktop.
Manual Webserver
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