Fork me on GitHub

Usage

Test JSP

There is a JSP that allow to run test on the module-blobstore-rest. It is accessible through the following link :

jsp/admin/plugins/blobstore/modules/rest/TestBlobStoreRest.jsp

Note : To access to this JSP, one must be authenticated in the Back-Office. The filter tags must also be commented in the file blobstore-rest.xml so the module won't use the security, otherwise, an HTTP 401 response will be returned.

URLs syntax

Creation of a blob

To create a blob, a form using the method POST and having an entype multipart/form-data and with the following parameters are needed :

Parameter's name Parameter's type Description
blobstore text Name of the BlobStore Service
blob file File to upload

http://myhost/mywebapps/rest/blobstore/create

Removeing a blob

To remove a blob, a form using the method POST and with the following parameters are needed :

Parameter's name Parameter's type Description
blob_key text ID blob
blobstore text Name of the BlobStore Service

http://myhost/mywebapps/rest/blobstore/delete