CubeDrive   ->   API

Generate online document


Customers upload the word and generate the online document. With the API, the system can generate online documents based on pass parameters.

Name: {{baseuri}}/editorV2Api/generateEditorOnTpl

Parameters:

documentId: "Q5TkZ_jsJpQ"
items: [...]
0: {title: "${start date}", value: "2020-07-20"}
1: {title: "${end date}", value: ""}
2: {title: "${status}", value: "open"}
3: {title: "${type}", value: "MTN"}

http method: POST

Step


See the following steps for detail

@baseuri = http://localhost:8080/cubedrive-webapp
@username= admin
@password= abcabc123
@xAuthToken=bbb6c793-832c-4733-9601-a023366d918f

###
GET {{baseuri}}/getLogin?j_username={{username}}&j_password={{password}}

###
POST {{baseuri}}/editorV2Api/generateEditorOnTpl
X-Auth-Token: {{xAuthToken}}
Content-Type: application/json;charset=UTF-8; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
    

Result


{
  fileId: "26IFwcU6qt4"
  success: true
}