Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Last active July 24, 2020 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssukhpinder/12d68ced8fd1efb20aa6cf3b57c0f32d to your computer and use it in GitHub Desktop.
Save ssukhpinder/12d68ced8fd1efb20aa6cf3b57c0f32d to your computer and use it in GitHub Desktop.
import flask
from flask import request, jsonify
def main():
query_parameters = request.args
number1 = int(request.args.get(‘number1’))
number2 = int(request.args.get(‘number2’))
return jsonify({‘total’: number1+number2}), 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment