Exporting API proxy using REST API is not downloading as zip file.

Not applicable

I am trying to download API proxy using SOAP UI through Apigee's management APIs but its not coming as an attachment. I tried same thing with Apigee's browser utility response coming back is octate stream with zip file name but no zip file to download/attachment. Even i tried with curl with -o option still didn't work.

I followed following link.

http://apigee.com/docs/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revision...

Solved Solved
0 3 949
1 ACCEPTED SOLUTION

Not applicable

The API will return the zip-formatted contents of the file. When using the API, you will need to save off the response to a file that you choose. With curl, you must specify the file name for the -o option to work (e.g. -o myAPI.zip). I tried it just now and it seemed to work fine for me. Please try that, and if you are still having any problems please reply back.

View solution in original post

3 REPLIES 3

Not applicable

The API will return the zip-formatted contents of the file. When using the API, you will need to save off the response to a file that you choose. With curl, you must specify the file name for the -o option to work (e.g. -o myAPI.zip). I tried it just now and it seemed to work fine for me. Please try that, and if you are still having any problems please reply back.

I added an example cURL command to the page that shows how to call the API and save the API proxy to a zip file:

http://apigee.com/docs/management/apis/get/organizations/%7Borg_name%7D/apis/%7Bapi_name%7D/revision...

Not applicable

Thanks Michael and Sgilson. It worked.