mashery / iodocs

Interactive API documentation system
MIT License
1.89k stars 415 forks source link

multipart boundary supprt #74

Open aplatt opened 11 years ago

aplatt commented 11 years ago

I am trying to get iodocs to POST a message to my REST service that expects a "multipart/form-data" content-type. How do I persuade iodocs to put in bundaries on POST? When I snoop the message being sent I can see there are no boundaries and I get the following error on the server side:

java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Couldn't find MIME boundary: --myboundary

My iodocs config is:

"OSSUI": { "name": "Personal Storage", "protocol": "http", "baseURL": "jrbuild1srv:28080", "publicPath": "/ossui-examples/services/rest/ossui/preferences", "headers" : {"Content-Type": "multipart/form-data; boundary=myboundary"}, "auth": "", "keyParam": "" }

{ "endpoints":[ { "name":"Save Methods", "methods":[ { "MethodName":"Save preferences", "Synopsis":"This method allows you to save a string in personal storage", "HTTPMethod":"POST", "URI":"/set", "RequiresOAuth":"N", "parameters":[ { "Name":"name", "Required":"Y", "Default":"Test", "Type":"string", "Description":"Authorized user name" }, { "Name":"value", "Required":"Y", "Default":"", "Type":"string", "Description":"Value to store" } ] } ] }, { "name":"Fetch Methods", "methods":[ { "MethodName":"Fetch preferences", "Synopsis":"This method allows you to fetch a string from personal storage", "HTTPMethod":"GET", "URI":"/get", "RequiresOAuth":"N", "parameters":[ { "Name":"name", "Required":"Y", "Default":"Test", "Type":"string", "Description":"Authorized user name" } ] } ] } ] }

brunokenj commented 6 years ago

1+

hnrami commented 4 years ago

1+