Show pages with REST API

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

Show pages with REST API

Post by Marcin »

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
Posts: 522
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico

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": ... xample-use

Post Reply