Search found 12 matches

by Bastian
Fri May 10, 2019 9:26 am
Forum: Issues or Errors
Topic: API Search not working
Replies: 1
Views: 177

API Search not working

Hi,

this can be closed. It's working!
by Bastian
Fri May 10, 2019 8:53 am
Forum: Issues or Errors
Topic: No API documentation on 3.1.10 Docker
Replies: 2
Views: 199

No API documentation on 3.1.10 Docker

Hi,

I just realised that on the last version 3.1.10 I get no API documentation.
No swagger and no redoc.
by Bastian
Fri May 10, 2019 8:45 am
Forum: General topics
Topic: Seach for existing documents using the API
Replies: 1
Views: 4574

Re: Seach for existing documents using the API

Hi again,

I'll try to reduce the search time now with searching only the documents of a single cabinet

So I'll determin the correct cabinet and search there, not in the whole system

with url: /api/cabinets/cabinetid/documents/

this should do the trick for now
by Bastian
Thu May 09, 2019 6:58 am
Forum: General topics
Topic: Seach for existing documents using the API
Replies: 1
Views: 4574

Seach for existing documents using the API

Hi @all, I wrote a small python script which is triggered when a new document is created or an existing document is changed in our ERP software. When a document is modified I want to upload is as a new version of the same document into Mayan. Is there a better (quicker) way to search for a specific ...
by Bastian
Wed May 08, 2019 11:25 am
Forum: General topics
Topic: Good article on Mayan
Replies: 3
Views: 4683

Re: Good article on Mayan

Great artile,

thanks for sharing!
by Bastian
Thu Mar 14, 2019 10:07 am
Forum: General topics
Topic: API Document upload example
Replies: 1
Views: 395

Re: API Document upload example

ok,

I've got the file uploaded.

I used the wrong base url
it needs to be uploaded to /api/documents

than it works.

Now I need to add the uploaded document to a cabinet.

We will see...
by Bastian
Wed Mar 13, 2019 4:06 pm
Forum: General topics
Topic: API Document upload example
Replies: 1
Views: 395

API Document upload example

Hi @all I'm trying to upload a file with a python script and requests library to a cabinet. So far I've managed to fetch the correct cabinet id and to create a new cabinet if it doesn't exist already. But how do I upload a document (pdf) into that cabinet? Does anyone have a codesnippet? here's what...
by Bastian
Tue Mar 12, 2019 12:54 pm
Forum: Issues or Errors
Topic: mayan-api_client not working with Mayan 3.1.9
Replies: 3
Views: 299

Re: mayan-api_client not working with Mayan 3.1.9

Hi and thanks for your reply.

Ok, so I'll try to setup a connection between our CRM and Mayan purely on the requests library.

Best regards,
Bastian
by Bastian
Mon Mar 11, 2019 11:05 am
Forum: Issues or Errors
Topic: Swagger validation error for API documentation on "direct deployment"
Replies: 2
Views: 315

Re: No API documentation on direct deployment

Hi again I had a look at the log files and found an error coming up: Error for swagger: common.middleware.error_logging <955> [ERROR] "process_exception() line 17 Exception caught by request middleware; <WSGIRequest: GET '/swagger/?format=openapi'>, spec validation failed" Traceback (most recent cal...
by Bastian
Mon Mar 11, 2019 9:34 am
Forum: Issues or Errors
Topic: Swagger validation error for API documentation on "direct deployment"
Replies: 2
Views: 315

Swagger validation error for API documentation on "direct deployment"

Hi @all I posted this as a side note in my other thread concerning the mayan_api client. But the main problem seems to be, that the API documentation is not available in the "direct deployment" installation. That's why the mayan_api cannot be initialized or connected. So here's ascreenshots I've mad...