Forum Discussion

Wicia's avatar
Wicia
New Contributor
5 years ago

Add Upload button for OpenAPI 2.0 file as Octet-Stream

Context I am using OpenAPI ver 2.0 I have API which consumes application/octet-stream (Java InputStream) Issue In OpenAPI ver 2.0 I can only set input type as multipart/form-data (link) to have...
  • HKosova's avatar
    HKosova
    5 years ago

    Not out of the box. You can try forking Swagger UI and implementing this non-standard functionality yourself. But the proper solution is to use OpenAPI 3.0. If you write the API definition manually (rather than generate it from code), there are OpenAPI 2.0-to-3.0 converters to help you with the migration.