When using Elvis 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 Elvis 6 Server and the Pro client are fully installed and working correctly.
Step 1. Using the tool, log in to Elvis Server by performing a POST request.
<Elvis Server URL>/services/login?username=<user name>&password=<password>
curl '<Elvis 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:
<Elvis Server URL>/services/admin/demopack?Content-Type=application/json&X-CSRF-TOKEN=<token value>
curl '<Elvis 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 Elvis and stored in the 'Demo Zone' folder. This process takes a few moments.
Step 3. Verify that the files are now available in Elvis by accessing the Pro client 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 the Elvis Pro Client.
- 20 August 2019: Made it clearer how to use curl.
- 20 August 2019: Made it clearer that installing the files is done via a POST request.
- 20 August 2019: Removed the screenshots for Postman.