Page 1 of 1

Show pages with REST API

Posted: Thu Jul 25, 2019 1:03 pm
by Marcin
Hi,
I'm trying to create vue.js based frontend for Mayan, using REST API. I got stuck at showing document pages. To see them you have to be logged in, but I want to only use a token that you can get by API. What is the correct way to show images to the user without creating a session and using the aforementioned token?

Re: Show pages with REST API

Posted: Thu Jul 25, 2019 7:19 pm
by rosarior
Include the token in the headers as value to the 'Authorization' key as shown in the example "Add the API token to the request header": https://docs.mayan-edms.com/topics/inte ... xample-use