Get Changes Categories

Note
Note:  The features listed in this page are working only with GroupDocs.Comparison Cloud V1

You can compare documents and get list of changes categories by providing the JsonRequest Object data in request body.

Resource

The following GroupDocs.Comparison Cloud REST API resource has been used to get compared documents changes categories.

Enumeration of categories of changes


enum ComparisonCategoriesType
{
  ByTypeChanged, * "take categories by TypeChanged"
  ByNodeType, * "take categories by nodes Types"
  ContainsNumbers, * "take categories with changes which contains numbers"
  OnlyNumbers * "take categories with changes which contains only numbers"
}

cURL example

curl -v "https:~/~/api.groupdocs.cloud/v1.0/comparison/compareDocuments/changes/categories?categoriesType#ByTypeChanged&appsid#XXXX&signature#XXX-XX"

-H "content-type: application/json"

-X POST -d "{'sourceFile':{'folder':'comparisons','name':'source.docx','password':''},'targetFiles':[{'folder':'comparisons','name':'target.docx','password':''}]}"
[
  {
    "category": "Deleted",
    "changes": [
      {
        "id": 0,
        "type": "Deleted",
        "text": "digital ",
        "authors": [
            "Rizwan"
        ],
        "action": "None",
        "styleChanges": []
      },
      {
        "id": 1,
        "type": "Deleted",
        "text": "Executive ",
        "authors": [
            "Rizwan"
        ],
        "action": "None",
        "styleChanges": []
      },
      {
        "id": 3,
        "type": "Deleted",
        "text": "",
        "authors": [
            "Rizwan"
        ],
        "action": "None",
        "styleChanges": []
      }
    ]
  },
  {
      "category": "Inserted",
      "changes": [
        {
          "id": 2,
          "type": "Inserted",
          "text": "",
          "authors": [
              "Rizwan"
          ],
          "action": "None",
          "styleChanges": []
        }
      ]
  }
]

SDK example

The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.

Get Changes Categories from Compared Documents