When using Assets Server for demonstration purposes, a pack of 60 demo files can be installed. This pack consists mainly of images but also includes documents, a presentation, spreadsheets, InDesign files and videos.
This article explains how to install these demo files.
Note: It is assumed here that Assets Server and Assets are fully installed and working correctly.
Perform the following steps using a tool such as Postman or curl.
Step 1. Using the tool, log in to Assets Server by performing a POST request.
<Assets Server URL>/services/login?username=<user name>&password=<password>
curl '<Assets Server URL>/services/login?username=<user name>&password=<password>' -X POST -c cookiejar
curl 'http://localhost:8080/services/login?username=admin&password=changemenow' -X POST -c cookiejar
Note down the csrf token that is returned in the response. We will use it to post the demo pack request.
Step 2. Install the demo files by performing the following POST request:
<Assets Server URL>/services/admin/demopack?Content-Type=application/json&X-CSRF-TOKEN=<token value>
curl '<Assets Server URL>/services/admin/demopack' -H 'Content-Type: application/json' -H 'X-CSRF-TOKEN: <token value>' -X POST -b cookiejar -v
curl 'http://localhost:8080/services/admin/demopack' -H 'Content-Type: application/json' -H 'X-CSRF-TOKEN: 37cOLsHAaqoBKVDei3rS8a' -X POST -b cookiejar -v
The files are imported into Assets Server and stored in the 'Demo Zone' folder. This process takes a few moments.
Step 3. Verify that the files are now available in Assets Server by accessing Assets and searching for the files simply by doing one of the following:
- Leaving the Search box empty and pressing Enter
- Using the Folder browser to navigate to the Demo Zone folder
Figure: Viewing the demo files in Assets.
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
Please sign in to leave a comment.