Document Uploader

create

POSThttp://localhost:8080/egov-document-uploader/egov-du/document/_create
Body
DocumentEntityDocumentEntity
RequestInfoany
Response

OK

Body
Documentsarray of DocumentEntity
ResponseInfoany
Request
const response = await fetch('http://localhost:8080/egov-document-uploader/egov-du/document/_create', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Documents": [
    {
      "active": false,
      "auditDetails": {
        "createdBy": "text",
        "createdTime": 0,
        "lastModifiedBy": "text",
        "lastModifiedTime": 0
      },
      "category": "text",
      "description": "text",
      "documentLink": "text",
      "filestoreId": "text",
      "name": "text",
      "postedBy": "text",
      "tenantId": "text",
      "tenantIds": [
        "text"
      ],
      "uuid": "text"
    }
  ]
}

delete

POSThttp://localhost:8080/egov-document-uploader/egov-du/document/_delete
Body
DocumentEntityDocumentEntity
Response

OK

Body
any
Request
const response = await fetch('http://localhost:8080/egov-document-uploader/egov-du/document/_delete', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
POSThttp://localhost:8080/egov-document-uploader/egov-du/document/_search
Query parameters
Body
RequestInfoWrapper
Response

OK

Body
Documentsarray of DocumentEntity
Request
const response = await fetch('http://localhost:8080/egov-document-uploader/egov-du/document/_search', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Documents": [
    {
      "active": false,
      "auditDetails": {
        "createdBy": "text",
        "createdTime": 0,
        "lastModifiedBy": "text",
        "lastModifiedTime": 0
      },
      "category": "text",
      "description": "text",
      "documentLink": "text",
      "filestoreId": "text",
      "name": "text",
      "postedBy": "text",
      "tenantId": "text",
      "tenantIds": [
        "text"
      ],
      "uuid": "text"
    }
  ]
}

update

POSThttp://localhost:8080/egov-document-uploader/egov-du/document/_update
Body
DocumentEntityDocumentEntity
Response

OK

Body
Documentsarray of DocumentEntity
Request
const response = await fetch('http://localhost:8080/egov-document-uploader/egov-du/document/_update', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "Documents": [
    {
      "active": false,
      "auditDetails": {
        "createdBy": "text",
        "createdTime": 0,
        "lastModifiedBy": "text",
        "lastModifiedTime": 0
      },
      "category": "text",
      "description": "text",
      "documentLink": "text",
      "filestoreId": "text",
      "name": "text",
      "postedBy": "text",
      "tenantId": "text",
      "tenantIds": [
        "text"
      ],
      "uuid": "text"
    }
  ]
}

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.