Last active
July 24, 2020 16:47
-
-
Save ssukhpinder/12d68ced8fd1efb20aa6cf3b57c0f32d to your computer and use it in GitHub Desktop.
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
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