#Authors: Oulis Evangelos, Oulis Nikolaos, Drosos Katsibras #=================================================================== # using flask restful from flask import Flask, request, jsonify from flask_restful import Resource, Api from json import dumps import json from flask_cors import CORS # ================================================================== # ================================================================== # creating the flask app app = Flask(__name__) CORS(app) # creating an API object api = Api(app) parks = dict() # ================================================================== # making a class for a particular resource # the get, post methods correspond to get and post requests # they are automatically mapped by flask_restful. # other methods include put, delete, etc. class Parking(Resource): def get(self): return parks, 200 class ParkingStatus(Resource): def get(self): return """