Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page Properties
hiddentrue


Status

Status
colourGreen
titleDONE

Priority1
Note
Assignee

Ressources

Remarks

...

We use a Request.Builder() to create a request object with the multipart body, headers, and the URL. The following headers are necessary for the import because they contain user information of the user accessing the endpoint: Authorization header that contains the Base64-coded credentials of the user and an X-ID-TENANT-NAME header that contains the tenant name of the user. If the used OkHttp client supports cookie handling, the Authorization header can be omitted after the client's first request, since the logon information is stored in a session cookie (see alsoLogin Tutorial).

Code Block
languagejava
titleBuilding a POST Request for an Import
linenumberstrue
Request request = new Request.Builder()
        .header("Authorization", "Basic "+ auth)
        .header("X-ID-TENANT-NAME", tenant)
        .url(baseUrl + "/api/dms/objects") //baseUrl: "http://<host>:<port>"
        .post(requestBody)
        .build();

...

Info
iconfalse

More Tutorials

Section


Column
width25%

Retrieving Documents

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
Retrieving Documents via Core API
Retrieving Documents via Core API
nopaneltrue
Keep reading


Column
width25%

Updating Documents

Insert excerpt
Updating Documents

This tutorial introduces some ways to retrieve metadata or content from a DMS document in the yuuvis® system via Core API.

via Core API
Updating Documents via Core API
nopaneltrue
 Keep reading


Column
width25%

Deleting Documents

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.

Insert excerpt
Deleting Documents via Core API
Deleting Documents via Core API
nopaneltrue
 Keep reading