How to create multipart file upload API in WSO2 API Manager

I tried this scenario in my local machine with multi part file upload sample[1]. Please refer my instructions below.

01. Deployed file uploading war file into webserver(for this example i used WSO2  Application server 5.2.0).
02. Create API from publisher UI in API manager by pointing to file upload web service, and then publish API. Here you don't have to add any other parameter to synapse configuration.
03. Create SoapUI project to send requests(attached here).
04. Then added file attachment and oauth authentication header and send request to API manager's API.

I was able to send large(4.0 MB) files without any issue. I have attached fileupload-sample.zip file to this JIRA and it contains all artefacts i used for this test(file upload war file, SoapUI project and API definition).


[1]https://svn.wso2.org/repos/wso2/trunk/commons/qa/qa-artifacts/app-server/as-5.1.0/content_type/

fileupload-sample.zip

No comments:

Post a Comment

Empowering the Future of API Management: Unveiling the Journey of WSO2 API Platform for Kubernetes (APK) Project and the Anticipated Alpha Release

  Introduction In the ever-evolving realm of API management, our journey embarked on the APK project eight months ago, and now, with great a...