CubeDrive   ->   API

List forms 【listForms】


With this API, user can get a list of forms (my created and shared with me).

Name: {{baseuri}}/formMgr/listForms

Parameter:

http method: GET

Steps


Here lists the steps

Step 1: Get system xAuthToken -- GET {{baseuri}}/getLogin?j_username={{username}}&j_password={{password}}

{
    "success": true,
    "systemInfo": {
        "logoPath": "https://www.cubedrive.com/lite/images/customer/CUBEDRIVE.png",
        "language": "en",
        "systemName": "CUBEDRIVE",
        "systemDesc": "Business Process Data Automation",
        "showAppModule": true,
        "showHelpModule": true,
        "canSelfRegister": true
    },
    "userLang": "en",
    "userObj": {
        "id": "tZFXlfK4dIo",
        "firstname": "Fenqiang",
        ...
    },
    "x-auth-token": "75629371-1b85-4757-b7b7-66e9f9b4cb89"
}   
   

Step 2: List all forms

@baseuri = https://www.cubedrive.com/lite
@username= admin
@password= abcabc
@xAuthToken=75629371-1b85-4757-b7b7-66e9f9b4cb89

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

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

Results


{
  "success": true,
  "totalCount": "1",
  "results": [
    {
      "id": "6671575366949146624",
      "formTitle": "data",
      "formUrl": "https://app.redbeandata.cn/cubedrive/app/form/d-ZR3J8SF69oags9qpqdNjRUxZbVrNTL",
      "icon": "fa-list-alt",
      "description": "",
      "type": "public",
      "tag": null,
      "content": null,
      "defaultPermission": 2,
      "repeatEnter": false,
      "expireDatetime": null,
      "permission": null,
      "settings": { ... },
      "pdfTemplate": null,
      "sharePermission": null,
      "formDocumentId": "aCGVxh4dgtI",
      "innerLink": null,
      "author": true
    }
  ],
  "metaData": { ... }
}