app-restconsole icon indicating copy to clipboard operation
app-restconsole copied to clipboard

REST console help

Open barkhakeni opened this issue 12 years ago • 2 comments

I am using REST console to test some of our REST webservices and wanted your help on how to use REST console. We have created POST call which accepts multipart/form-data. Do you know how to construct a multipart body in REST console? I tried to add attachments and data in RAW payload section but that didnt work. I could not see any payload in multipart object. I did set the content type to multipart-formdata but that didnt work. I use Advanced REST client to set up multipart form data. I wanted to know if it is possible in REST console.

barkhakeni avatar Feb 27 '13 18:02 barkhakeni

can you provide some examples of the request you are sending, perhaps the HAR extract?

ahmadnassri avatar Feb 27 '13 19:02 ahmadnassri

Thanks for your reply. I have extracted the request i created from rest client. I am not able to attached with the email So i have copied the contents below. While constructing multipart body, rest client adds the boundary itself. I dont see that happening in REST console.

1.1<URL> http://localhost:8082/RESTfulExample/rest/file/upload</URL>POSTC:\Users\kenib\Documents\Projects\Vision OS-Compliance\2013.pdfC:\Users\kenib\Documents\Projects\Vision OS-Compliance\2012.pdf<files> <file>system1</file> <file>system2</file> </files>

On Wed, Feb 27, 2013 at 2:06 PM, Ahmad Nassri [email protected]:

can you provide some examples of the request you are sending, perhaps the HAR extract?

— Reply to this email directly or view it on GitHubhttps://github.com/codeinchaos/restconsole/issues/89#issuecomment-14192529 .

Thanks, Barkha

barkhakeni avatar Feb 27 '13 19:02 barkhakeni