We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saaspose REST API documentation: incomplete?

Hi

I have been testing Saaspose REST API to get to know it better.
I did the following calls, which worked (I omit the appSID and signature in the following URLs):
1. Create a barcode using PUT /barcode/something.png/generate?text=Python test: 2013-07-04 18:40:36&type=pdf417&format=png
2. Test that it exists using GET /storage/exist/pythontest.png?folder=

What worries me is that I had to find out the correct query parameters by trial and error for those REST endpoints, in particular the 2nd one (/storage/exist):
- in the documentation, nothing is written about the GET parameters
- in the API reference (that I find more convenient to use as a developer, FYI), there is indicated that the accepted parameters are versionID and storage
=> it’s not indicated if they are mandatory or not, neither what they mean
=> finally those 2 parameters are not mandatory. But the folder parameter (see above), which is not indicated in the reference, was necessary. Indeed, the following query yields 400 (bad request): /storage/exist/pythontest.png

Could you please point me to the correct documentation for your API (in particular for the words family), if it exists??

Thank you

Hi

Thanks for your inquiry. First off, I would like to update you that we are in the progress to revamp our Aspose for Cloud product documentations. In this API Reference , there is no folder parameter. I mean it is also not documented anywhere. There are total three parameters named as path, versionid and storage. The storage parameter is mandatory in case of third party storage, e.g. Amazon, Dropbox and Google drive etc. It is not required in case of Aspose Cloud Storage. The path parameter is mandatory i.e.

You require to check the presence of a folder on the root of the Aspose Cloud Storage then the URI is:

http://api.saaspose.com/v1.0/storage/exist/FolderName

Check the presence of a file on the root of the Aspose Cloud Storage:

http://api.saaspose.com/v1.0/storage/exist/MyFile.png

Check the presence of a Subfolder on the Aspose Cloud Storage:

http://api.saaspose.com/v1.0/storage/exist/FolderName/MySubfolderName

Check the presence of a file located in the Subfolder on the Aspose Cloud Storage:

http://api.saaspose.com/v1.0/storage/exist/FolderName/MySubFfolderName/MyFile.png

The version id parameter is optional. It is about the file’s version. I’ve asked details about it. I will get back to you soon.

AHylw:

Could you please point me to the correct documentation for your API (in particular for the words family), if it exists??

Please refer to the following documentation link:

I hope, this helps. Please let me know in case of any confusion or questions.