Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multipart request don't work correctly #129

Closed
ghost opened this issue Jan 14, 2015 · 3 comments
Closed

Multipart request don't work correctly #129

ghost opened this issue Jan 14, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 14, 2015

I can not modify the request of dredd to attach a file, do not find a way to add a multipart correctly, try to include directly in the documentation blueprint the postman call with a correct boundary and data, but don't work, also I tried to test this example:
+info[http://stackoverflow.com/questions/24207495/how-do-i-document-a-multipart-request-with-apiary]

My example:

Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="hash"

8690d6c5efd5bc9433f550ff9209b7ba
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="test_with_correct_data.csv"
Content-Type: text/csv

----WebKitFormBoundary7MA4YWxkTrZu0gW

I would like to know what the web client that you use to make requests, because supertest,
+info[https://www.npmjs.com/package/supertest] , for example, allows create multipart simply, and I could modify the request of transaction to do as I want.

I would like to know the current state of dredd for this and an answer to whether such a solution would be possible.

Thanks

@netmilk
Copy link
Contributor

netmilk commented Jan 15, 2015

Thanks for the report, can you please try this fork of Dredd wich supports multipart messages if it works as you wish?

@netmilk
Copy link
Contributor

netmilk commented Jan 15, 2015

This topic is also mentioned here #74 and also in API Blueprint project apiaryio/api-blueprint#100

@netmilk
Copy link
Contributor

netmilk commented Feb 17, 2015

@igzsergiofernandez This is solved in #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant