Get Dependencies for Selected Migration Resources or a Migration Package from Source Site

post

/rest/v16/migrationResources/dependencies

Use this endpoint to retrieve dependencies for selected migration resources or migration package from a source site.

Request

Supported Media Types
Header Parameters
Body ()
Get dependencies request
Root Schema : dependency-Request
Type: object
Title: dependency-Request
Show Source
Nested Schema : Contents
Type: object
Title: Contents
Show Source
Nested Schema : Migration Package Content List
Type: array
Title: Migration Package Content List
List of Migration Package Contents
Show Source
Nested Schema : migrationPackage-requestChildren
Type: object
Content for the Create, Update and Update Contents Migration Package
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migratePackage-subChildren
Type: object
Migration Resource children contents
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type: object
Show Source
Nested Schema : List of children contents
Type: array
Title: List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest-children
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Migration resource dependencies response
Body ()
Root Schema : dependency-Response
Type: object
Show Source
Nested Schema : List of Dependent Resources
Type: array
Title: List of Dependent Resources
List of dependent resources
Show Source
Nested Schema : dependencyResponse-children
Type: object
Dependency response
Show Source
Nested Schema : List of Resources
Type: array
Title: List of Resources
List of resources
Show Source
Nested Schema : dependencyResponse-subChildren
Type: object
Migration resource
Show Source
Nested Schema : List of Migration Resource Dependencies
Type: array
Title: List of Migration Resource Dependencies
List of migration resource dependencies
Show Source
Nested Schema : dependencyDetails
Type: object
Migration resource dependency
Show Source
  • Title: Migration Resource Category
    Migration resource category
  • Title: Migration Resource Hierarchy
    Hierarchy refers path information of the resource
  • Title: Migration Resource Name
    Name of the resource
  • Title: Migration Resource Dependency Type
    Migration resource dependency type
  • Title: Migration Resource Variable Name
    Migration resource variable name
Back to Top

Examples

The following examples show how to retrieve the dependencies for migration resources or a migration package from a source site by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.

Example of Dependencies of Selected Migration Resources from a Source Site

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" 
https://sitename.oracle.com/rest/v16/migrationResources/dependencies

Sample Request Body

{
  "contents": {
    "items": [{
        "category": "COMMERCE",
        "children": [{
            "name": "test",
            "variableName": "test",
            "granular": true,
            "children": [{
                "variableName": "test",
                "resourceType": "process",
                "checked": false,
                "children": [{
                    "name": "Main",
                    "variableName": "main",
                    "resourceType": "document",
                    "children": [{
                        "name": "Save",
                        "variableName": "save",
                        "resourceType": "action",
                        "modifiedByUser": "superuser",
                        "lastModified": "08/01/2023 10:28 PM"
                      }, {
                        "name": "Submit",
                        "variableName": "submit",
                        "resourceType": "action",
                        "modifiedByUser": "superuser",
                        "lastModified": "08/01/2023 10:27 PM"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

Sample Response Body

{
  "items": [{
      "name": "Commerce",
      "category": "COMMERCE",
      "children": [{
          "name": "Test",
          "variableName": "test",
          "resourceType": "process",
          "granular": true,
          "dependencies": [{
              "name": "HTML Field 1",
              "category": "COMMERCE",
              "variableName": "hTMLField1",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/hTMLField1~attribute"
            }, {
              "name": "Help Select Actions To Be Hidden",
              "category": "COMMERCE",
              "variableName": "helpSelectActionsToBeHidden",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/helpSelectActionsToBeHidden~attribute"
            }, {
              "name": "Step Name",
              "category": "COMMERCE",
              "variableName": "stepName",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/stepName~attribute"
            }
          ]
        }
      ]
    }
  ]
}

Example of Dependencies of a Migration Package from a Source Site

curl - X GET - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" - H "Content-type: application/json" https://sitename.oracle.com/rest/v16/migrationResources/dependencies

Sample Request Body

{
  "packageIdentifier": "migrationPackage_v1",
  "contents": {
    "items": [{
        "category": "COMMERCE",
        "children": [{
            "name": "test",
            "variableName": "test",
            "granular": true,
            "children": [{
                "variableName": "test",
                "resourceType": "process",
                "checked": false,
                "children": [{
                    "name": "Main",
                    "variableName": "main",
                    "resourceType": "document",
                    "children": [{
                        "name": "Save",
                        "variableName": "save",
                        "resourceType": "action",
                        "modifiedByUser": "superuser",
                        "lastModified": "08/01/2023 10:28 PM"
                      }, {
                        "name": "Submit",
                        "variableName": "submit",
                        "resourceType": "action",
                        "modifiedByUser": "superuser",
                        "lastModified": "08/01/2023 10:27 PM"
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}

Sample Response Body

{
  "items": [{
      "name": "Commerce",
      "category": "COMMERCE",
      "children": [{
          "name": "Test",
          "variableName": "test",
          "resourceType": "process",
          "granular": true,
          "dependencies": [{
              "name": "HTML Field 1",
              "category": "COMMERCE",
              "variableName": "hTMLField1",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/hTMLField1~attribute"
            }, {
              "name": "Help Select Actions To Be Hidden",
              "category": "COMMERCE",
              "variableName": "helpSelectActionsToBeHidden",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/helpSelectActionsToBeHidden~attribute"
            }, {
              "name": "Step Name",
              "category": "COMMERCE",
              "variableName": "stepName",
              "resourceType": "attribute",
              "type": "LOW_LEVEL",
              "hierarchy": "test~process/main~document/stepName~attribute"
            }
          ]
        }
      ]
    }
  ]
}
Back to Top