Hi Team,
We are using ELM702 version and required to gather the Total Number of Reused Artifacts and Total Number of Times Artifacts Reused.
The artifacts created using below process,
To reuse artifacts in a module, we can add existing artifacts to a module or create new artifacts in the module. We can also reuse an artifact by copying it from one module and pasting to another module. You can also select and insert an existing artifact from another module into a module. The base artifact is reused and added to the module.
Please refer below link for more details:
https://<publicuri>/rm/resources/<Moduleid>/structure
Headers:
Acceptapplication/json
DoorsRP-Request-Typepublic 2.0
Got the below response:
[
{
"uri": "https://<publicuri>/rm/resources/MD_QUiKoBQBEe64KdLUVArWXQ/structure",
"type": "dng_module:Binding",
"component": "https://<publicuri>/rm/cm/component/_xh0YEIXQEeyqUuM828MKQg",
"isStructureRoot": "true",
"isHeading": false,
"module": "https://<publicuri>/rm/resources/MD_QUiKoBQBEe64KdLUVArWXQ",
"childBindings": [
"https://<publicuri>/rm/resources/BI_SWk64BQBEe64KdLUVArWXQ",
"https://<publicuri>/rm/resources/BI_dIK1MBQBEe64KdLUVArWXQ"
]
},
{
"uri": "https://<publicuri>/rm/resources/BI_SWk64BQBEe64KdLUVArWXQ",
"type": "dng_module:Binding",
"component": "https://<publicuri>/rm/cm/component/_xh0YEIXQEeyqUuM828MKQg",
"isHeading": false,
"module": "https://<publicuri>/rm/resources/MD_QUiKoBQBEe64KdLUVArWXQ",
"boundArtifact": "https://<publicuri>/rm/resources/TX_HlmYUIXREeyqUuM828MKQg",
"childBindings": []
},
{
"uri": "https://<publicuri>/rm/resources/BI_dIK1MBQBEe64KdLUVArWXQ",
"type": "dng_module:Binding",
"component": "https://<publicuri>/rm/cm/component/_xh0YEIXQEeyqUuM828MKQg",
"isHeading": false,
"module": "https://<publicuri>/rm/resources/MD_QUiKoBQBEe64KdLUVArWXQ",
"boundArtifact": "https://<publicuri>/rm/resources/TX_dIXpgBQBEe64KdLUVArWXQ",
"childBindings": []
}
]
When i further requested for the artifact detail, didn't find difference between the response of reused artifact and original/base artifact. Please suggest how can i find reused artifact from the response? It will helps to gather the total reused artifact count.
API call to get artifact detail:
URI: https://<publicuri>/rm/resources/BI_SWk64BQBEe64KdLUVArWXQ
Thanks.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 04 '23, 12:18 p.m.The DN Reportable REST API is primarily intended for extracting data for reporting, rather than to calculate metrics.