CubeDrive   ->   API

List form data 【search】


With this API, users can get the form data.

Name: {{baseuri}}/formData/search

Parameter:

http method: POST

Step


Here comes the steps

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

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

###
POST {{baseuri}}/formData/search
X-Auth-Token: {{xAuthToken}}
Content-Type: application/json

{
	formId: "6671575366949146624"
	start: 0
	limit: 100
	scene: {index: 0, map: null}
	criteria: {$and: [{data.u524: {$regex: ".*data.*", $options: "si"}}]}
}
    

Result


{
  "success": true,
  "totalCount": "2",
  "results": [
    {
      "id": "6677436857191501825",       // formData Id
      "data": {
        "u7317": "Health investigate2",   
        "u7269": {
          "dt": 1,
          "values": [
            "e84fdadc-9bfe-2345",
            "e84fdadc-9bfe-4a9d",
            "e84fdadc-9bfe-4a9c"
          ]
        }
      },
      "parentIds": [],
      "userId": 22,
      "author": "Manager",
      "createdAt": "2020-06-13 13:10:07",
      "updatedAt": "2020-06-13 13:10:07",
      "status": null,
      "version": 0,
      "tags": [],
      "topPermission": null,
      "owner": true
    },
    {
      "id": "6677436857191501824",
      "data": {
        "u6278": "annotations_gtf||i1_fastq||r1_fastq||r2_fastq||ref_genome_fasta||sample_id||tar_star_reference||whitelist",
        "u7317": "DNA convert2",
        "u5105": "1b8d32f9-17f6-49c0-911b-bf9c8c745cfe||gs://hca-dcp-sc-pipelines-test-data/alignmentReferences/optimusGencodeV27/GRCh38.primary_assembly.genome.fa||gs://hca-dcp-sc-pipelines-test-data/alignmentReferences/optimusGencodeV27/buildReference/output_bucket/star_primary_gencode_v27.tar||gs://hca-dcp-sc-pipelines-test-data/alignmentReferences/optimusGencodeV27/gencode.v27.primary_assembly.annotation.gtf.gz||gs://hca-dcp-sc-pipelines-test-data/whitelists/737K-august-2016.txt||gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L003_I1_001.fastq.gz, gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L004_I1_001.fastq.gz||gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L003_R1_001.fastq.gz, gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L004_R1_001.fastq.gz||gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L003_R2_001.fastq.gz, gs://org-hca-dss-checkout-prod/bundles/0a43b2ec-f2a0-401e-aba1-db426c0fbc9a.2019-07-03T090630.607000Z/MantonCB6_HiSeq_3_S11_L004_R2_001.fastq.gz"
      },
      "parentIds": [],
      "userId": 22,
      "author": "Manager",
      "createdAt": "2020-06-13 13:10:07",
      "updatedAt": "2020-06-13 13:10:07",
      "status": null,
      "version": 0,
      "tags": [],
      "topPermission": null,
      "owner": true
    }
  ],
  "form": { ... },
  "locks": null
}