Test the Screenshot Microservice
To test the Screenshot microservice:
Open a web browser to Composer. Obtain the ID for a dashboard to use for testing. Log in to Composer and open a dashboard. On the browser address bar copy the portion of the URL after the + sign. In the following example, you would copy
Use Postman or cURL to issue a PUT request to Composer to request a screenshot of the dashboard in PNG format. In the following example, replace <username> with your user name, <password> with your password, <server> with your server IP address or name, <port> with your port number, and <dash-id> with the dashboard ID you obtained in the previous step.
curl --insecure -X PUT -u <username>:<password> https://<server>:<port>/composer/api/
screenshot/<dash-id>?"width=1000&format=PNG" > test.png
test.pngfile is created successfully, the Screenshot microservice is operating correctly.