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
- application/json
Header Parameters
-
password(required): string
Source site user password
-
siteUrl(required): string
Source site URL
-
username(required): string
Source site user name
Get dependencies request
Root Schema : dependency-Request
Type:
object
Title:
Show Source
dependency-Request
-
contents:
object Contents
Title:
Contents
-
packageIdentifier:
string
Title:
Package Identifier
The unique identifier of the package the user wants to get dependencies from.
Nested Schema : Contents
Type:
object
Title:
Show Source
Contents
-
items:
array Migration Package Content List
Title:
Migration Package Content List
List of Migration Package Contents
Nested Schema : Migration Package Content List
Type:
array
Title:
Migration Package Content List
List of Migration Package Contents
Show Source
-
Array of:
object migrationPackage-requestChildren
Content for the Create, Update and Update Contents Migration Package
Nested Schema : migrationPackage-requestChildren
Type:
object
Content for the Create, Update and Update Contents Migration Package
Show Source
-
category(required):
string
Title:
Migration Package Contents Category
Category of migration contents -
checked:
boolean
Title:
checked
Default Value:true
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
name:
string
Title:
Migration Package Contents Name
Name is an optional field in the request payload
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
-
Array of:
object migratePackage-subChildren
Migration Resource children contents
Nested Schema : migratePackage-subChildren
Type:
object
Migration Resource children contents
Show Source
-
checked:
boolean
Title:
checked
If true, add the resource to the package content -
children:
array List of children contents
Title:
List of children contents
List of children contents -
granular:
boolean
Title:
granular
Default Value:false
If true, the resource has low-level details -
name:
string
Title:
Migration Package Resource Name
Name is an optional field in Request Payload -
resourceType(required):
string
Title:
Migration Package node name
resourceType refers the node (This field is mandatory only for low-level details objects) -
variableName(required):
string
Title:
Migration Package Content Child Name
variableName refers the child name
Nested Schema : List of children contents
Type:
array
Title:
List of children contents
List of children contents
Show Source
Nested Schema : migrationPackage-lowLevelUpdateRequest
Type:
Show Source
object
-
checkedAllChildren:
boolean
Title:
checkedAllChildren
Default Value:false
If true, considers all the children of the resource as selected. -
children:
array List of children contents
Title:
List of children contents
List of children contents -
resourceType(required):
string
Title:
resourceType
This field represents the type of resource. -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
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:
Show Source
object
-
resourceType(required):
string
Title:
resourceType
This field represents the type of resource -
variableName(required):
string
Title:
variableName
This field represents the variableName of the resource.
Response
Supported Media Types
- application/json
Default Response
Migration resource dependencies response
Root Schema : dependency-Response
Type:
Show Source
object
-
items:
array List of Dependent Resources
Title:
List of Dependent Resources
List of dependent resources
Nested Schema : List of Dependent Resources
Type:
array
Title:
List of Dependent Resources
List of dependent resources
Show Source
-
Array of:
object dependencyResponse-children
Dependency response
Nested Schema : dependencyResponse-children
Type:
object
Dependency response
Show Source
-
category:
string
Title:
Migration Resource Category
Category -
children:
array List of Resources
Title:
List of Resources
List of resources -
name:
string
Title:
Migration Resource Category Name
Name of the category
Nested Schema : List of Resources
Type:
array
Title:
List of Resources
List of resources
Show Source
-
Array of:
object dependencyResponse-subChildren
Migration resource
Nested Schema : dependencyResponse-subChildren
Type:
object
Migration resource
Show Source
-
dependencies:
array List of Migration Resource Dependencies
Title:
List of Migration Resource Dependencies
List of migration resource dependencies -
name:
string
Title:
Migration Resource Name
Name of resource -
resourceType:
string
Title:
Migration Resource Type
Migration resource type -
variableName:
string
Title:
Migration Resouce Variable Name
Migration resource variable name
Nested Schema : List of Migration Resource Dependencies
Type:
array
Title:
List of Migration Resource Dependencies
List of migration resource dependencies
Show Source
-
Array of:
object dependencyDetails
Migration resource dependency
Nested Schema : dependencyDetails
Type:
object
Migration resource dependency
Show Source
-
category:
string
Title:
Migration Resource Category
Migration resource category -
hierarchy:
string
Title:
Migration Resource Hierarchy
Hierarchy refers path information of the resource -
name:
string
Title:
Migration Resource Name
Name of the resource -
type:
string
Title:
Migration Resource Dependency Type
Migration resource dependency type -
variableName:
string
Title:
Migration Resource Variable Name
Migration resource variable name
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" } ] } ] } ] }