...
...
...
...
Page Properties |
---|
|
Status | Status |
---|
---|
colour | Green |
---|
title | DONE |
---|
Priority | 1 |
---|
Note | Ressources
Remarks |
...
|
Product Version |
|
---|
Report Note |
|
---|
Assignee |
|
---|
Resources & Remarks Modification History Name | Date | Product Version | Action |
---|
Antje | 08 FEB 2021 | 2.4 | New page properties macro. |
|
Excerpt |
---|
In this tutorial, we will discuss various ways to retrieve objects via the Core API from the yuuvis® API system using an OkHttp3 Java client. |
Check out our graphical overview of the architecture which describes the basic use case flow for retrieving content or metadata.
Section |
---|
|
Column |
---|
Table of Contents Table of Contents |
---|
exclude | (Table of Contents|More Tutorials|Importing Documents|Updating Documents|Deleting Documents) |
---|
|
|
|
...
Maven Configuration
...
The direct access to a document takes place via its object ID via GET request to the endpoint /api/dms/objects/{objectId}
. The objectId
serves as a unique identifier of a document and can be obtained from the response of the API call of an import (see Tutorial for updating documents: Determining the objectId after import).
Code Block |
---|
language | java |
---|
title | Retrieving Metadata of an Object |
---|
linenumbers | true |
---|
|
String objectId = "1234567890"; //example-objectId
Request metadataRequest = new Request.Builder()
.header("Authorization", "Basic " + auth)
.header("X-ID-TENANT-NAME", tenant)
.url(baseUrl+ "/api/dms/objects/" + objectId)
.get().build();
Response metadataResponse = client.newCall(metadataRequest).execute();
String metadataResponseString = metadataResponse.body().string(); |
...
If a specific version of the document is to be requested, the endpoint to be called for the documents' metadata changes to /api/dms/objects/{objectId}/versions/{versionNr}
and for the documents' content to /api/dms/objects/{objectId}/versions/{versionNr}/contents/file
. More about this topic can be found in the Updating Documents via Core API tutorial tutorial under Versioning.
Retrieving Documents via Search Endpoint
The Core API provides a search endpoint (/api/dms/objects/search
) that can process search queries written in the proprietary CMIS-Based Search Query Language. The search query is sent to the search endpoint in JSON format in the body of a POST request.
...
Info |
---|
|
More Tutorials
Section |
---|
Column |
---|
| This tutorial uses code examples to show how to import documents via Core API into a yuuvis® API system using a Java client. Insert excerpt |
---|
| Importing Documents via Core API |
---|
| Importing Documents via Core API |
---|
nopanel | true |
---|
| Keep reading |
Column |
---|
| This tutorial introduces some ways to retrieve metadata or content from a DMS document in the yuuvis® system via Core API | | Updating Documents via Core API |
---|
| . Keep reading |
Column |
---|
| A short tutorial that shows how to delete a DMS document in the yuuvis® system via Core API using the example of a Java client. via Core API | | Deleting Documents via Core API |
---|
nopanel | true |
---|
| Keep reading |
|
|