Message from Swagger CSV

We are working on Swagger documentation for our implementation of the LARALE REST API. Some POST endpoints will use CSV as the parameter content type.

Is there a way in Swagger for the Try It Now feature to work with loading a CSV POST file?

Below is our documentation http://api.curvecompass.com/docs/#/

We have a Laravel POST function that works correctly with the CSV endpoint, not Swagger docs.

+4
source share
2 answers

swagger ui for open api 3.0 does not support file downloads. you can see the update here https://github.com/swagger-api/swagger-ui/issues/3641

0
source

.

consumes:
    - multipart/form-data  # and/or application/x-www-form-urlencoded
  parameters:
    - name: file
      in: formData
      description: The uploaded file data
      required: true
      type: file
0

Source: https://habr.com/ru/post/1693438/


All Articles