问题
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