New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paperless-NG compatibility #18
Comments
I haven't heard of paperless-ng before but now that I have I absolutely do! The websocket API sounds very neat. This way new documents could instantly be added to the view. @jonaswinkler Do you think the REST API is stable enough that I could start adding compatibility to the app? Is there an easy way to distinguish between Paperless and Paperless-NG through the API? |
Hi there! No word on the websocket API yet. I've got that working on a feature branch, and it shows neat progress bars while consuming and returns the document ID when complete, for opening the document. But its pretty much experimental at this point. As for the REST Api.
Given this information, do you have an idea why your app would return this error? As for distinguishing between OG paperless and this:
Cheers. * I think it would be rather cool to specify that in the app just before uploading a document. If not specified, paperless would just fall back to defaults (matching algorithms and using the filename as the title). I know that the older /push/ endpoint had that to a degree, but it relied on this weird file name parsing logic. I changed that quite a bit. If we want this, open an issue over at paperless-ng and we can discuss how to do it. |
FYI, regarding correspondent_id, etc. I'll change these to correspondent, etc, and remove serving nested objects once I figured out how to handle that in the front end. This will be final. I did this initially, since it's much easier to get the document lists going. However, they're still served as primary keys, and not as URLs. |
Neat indeed! My plan for the old API is to query it every few seconds and check if there's anything new. Of course that's not a good plan as consuming might take unpredictably long and fail altogether.
That sounds wise.
This works reasonably well as long as it's a binary decision between paperless and paperless-ng. However, I think it's likely that the API will change in the future. It would make live easier for client developers (e.g. me) if there was a version endpoint that returns a message like
This would enable this app to maintain backwards-compatibility with older servers without an elaborate probing process to determine available features.
Yes, I will do so. Your API changes seem sensible and I'm excited to start working on compatibility in Paperless App! |
Another cool thing about these web sockets is that we get a precise error message when that happens, instead of nothing. |
API's done! Except for the versioning thing, which I'm not entirely sure about yet. Django offers support for versioning. Clients can specify the version they want to use, and the API serves the corresponding version of the requested endpoint. I'll look into that. Mention me if you feel that something is missing. |
Sounds like this could be a nice collaboration for both apps :-) Excited to see where this is headed. I just installed paperless-ng last night instead of the original and I'm liking it. The combination of paperless-ng and this paperless mobile app sounds like a winning combination for me. |
The app is now mostly working with Paperless-NG. Currently it's not possible to view non-PDF files though: jonaswinkler/paperless-ng#108 |
The limitation mentioned above is now fixed with recent builds of Paperless-NG. |
Version 0.0.7 has now been released. It maintains full compatibility to Paperless NG! |
I'm using paperless-ng, do you have any plans to make this app compatible? :)
When connecting, I get a popup that says:
Using 0.0.6.1006 from FDroid.
The text was updated successfully, but these errors were encountered: