1

I want to browse a file in RAML like the tool postman: enter image description here

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: enter image description here

Toi Nguyen
  • 413
  • 1
  • 6
  • 17
  • I hope I am wrong but I think API console (Mule's RAML documentation generator) does not have yet the browse file functionality. You may have to input the file contents instead.. I suggest to test those endpoints with file param using Postman for the mean time.. Also, I think you can request this feature on their Github repo, https://github.com/mulesoft/api-console/issues. – Avanaur Aug 26 '15 at 11:51
  • Thank for your information Tyrone :) – Toi Nguyen Aug 27 '15 at 08:12
  • Did you find a solution for this problem? – ganninu93 Jan 09 '17 at 08:59
  • Hi ganninu93, I've not found yet :( – Toi Nguyen Feb 06 '17 at 12:13

1 Answers1

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

David Dossot
  • 33,403
  • 4
  • 38
  • 72