如何用raml语言浏览文件? [英] How to browse a file in raml language?

查看:112
本文介绍了如何用raml语言浏览文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像工具邮递员一样在RAML中浏览文件:

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

但是当我用RAML语言编写时不支持该功能:

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:

推荐答案

API控制台中以

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.

按照Tyrone的建议,在GitHub中打开一个错误: https://github.com/mulesoft/api-console/问题

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

这篇关于如何用raml语言浏览文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆