MMichels

Results 2 comments of MMichels

You need to add a "After request" function on your app definitiion, like: app = Flask(__name__) @app.after_request def enable_cors(response): response.headers.add("Access-Control-Allow-Headers", "authorization,content-type") response.headers.add("Access-Control-Allow-Methods", "DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT") response.headers.add("Access-Control-Allow-Origin",...

Hello! To define a "list of possible values" for a parameter in swagger you must inform the list of values ​​through the "choices" attribute in the model, for example: ```...