How to implement flasgger code for file upload? - request.data is empty
问题 I am using flasgger 0.9.3 with Flask 1.0.2 I am trying to implement the following swagger code on the POST endpoint, so that user can visit the API url/apidocs website and select the endpoint, and then try out the POST request by uploading a document. When I use the below swagger, and put a debugger on request.data inside the endpoint's python code, it shows request.data is empty. The foll. is the curl request shown in the browser: curl -X POST "http://localhost:8081/extract-code" -H "accept: