How to browse a file in raml language?

别等时光非礼了梦想. 提交于 2020-01-06 03:58:24

问题


I want to browse a file in RAML like the tool postman:

But when I write in RAML language is not support for that:

body:
  multipart/form-data:
    formParameters:
      file:
        description: The file to be uploaded
        required: true
        type: file

And It doesn't have button "Browse", so I don't know how to attach a file to endpoint:


回答1:


This is missing in the API Console as the spec for the file type is clear on the necessity to support file uploads for RAML tooling:

file (Applicable only to Form properties) Value is a file. Client generators SHOULD use this type to handle file uploads correctly.

As Tyrone suggested, open a bug in GitHub: https://github.com/mulesoft/api-console/issues



来源:https://stackoverflow.com/questions/32220405/how-to-browse-a-file-in-raml-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!