Show pages with REST API

Anything concerning integration via the REST API
Post Reply
Marcin
Posts: 3
Joined: Thu Jul 25, 2019 11:38 am

Show pages with REST API

Post 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?

User avatar
rosarior
Developer
Developer
Posts: 513
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Show pages with REST API

Post 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

Post Reply