如何用raml语言浏览文件? [英] How to browse a file in raml language?
问题描述
我想像工具邮递员一样在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:
推荐答案
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屋!