homework 9.6: complete all tasks

This commit is contained in:
2022-09-19 11:47:25 +07:00
parent 4e5bd60702
commit 3d932f172e
9 changed files with 287 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from flask import Flask, request
from flask_restful import Resource, Api
from json import dumps
from flask_jsonpify import jsonify
app = Flask(__name__)
api = Api(app)
class Info(Resource):
def get(self):
return {'version': 3, 'method': 'GET', 'message': 'Already started'}
api.add_resource(Info, '/get_info')
if __name__ == '__main__':
app.run(host='0.0.0.0', port='5290')