Java REST upload new version of document?
Posted: Tue Oct 04, 2016 2:53 pm
I am a bit confused, as to how I would go about updating the version of a document by using REST in Java.
I am using LogicalDOC Community Edition, and through Eclipse, I am able to CRUD folders, create, read, update (just the metadata), and delete documents.
But how do I actually upload a new version of a document? I have found check in, checkout etc. methods in a DocumentService class, but is this what I am supposed to be using?
I have access to:
RestDocumentClient.create: Creates a new document
RestDocumentClient.getDocument: Gets a document
RestDocumentClient.delete: Deletes a document
RestDocumentClient.update: Updates ONLY the metadata of a document? I am confused.
Thank you
I am using LogicalDOC Community Edition, and through Eclipse, I am able to CRUD folders, create, read, update (just the metadata), and delete documents.
But how do I actually upload a new version of a document? I have found check in, checkout etc. methods in a DocumentService class, but is this what I am supposed to be using?
I have access to:
RestDocumentClient.create: Creates a new document
RestDocumentClient.getDocument: Gets a document
RestDocumentClient.delete: Deletes a document
RestDocumentClient.update: Updates ONLY the metadata of a document? I am confused.
Thank you