Skip to content

Cross-repo stitching (register provides/consumes, join edges)

POST
/v1/stitch
curl --request POST \
--url http://localhost:8090/v1/stitch \
--header 'Content-Type: application/json' \
--data '{ "workspaceId": "example", "provides": [ { "name": "example", "entryNodeId": "example", "entryUri": "example" } ], "consumes": [ { "name": "example", "consumerNodeId": "example" } ], "exports": [ { "name": "example", "nodeId": "example" } ], "symbolConsumes": [ { "symbol": "example", "callerNodeId": "example", "pkg": "example" } ] }'
Media typeapplication/json
object
workspaceId
required
string
provides
required
Array<object>
object
name
required
string
entryNodeId
required
string
entryUri
string
consumes
required
Array<object>
object
name
required
string
consumerNodeId
required
string
exports
Array<object>
object
name
string
nodeId
string
symbolConsumes
Array<object>
object
symbol
string
callerNodeId
string
pkg
string
Examplegenerated
{
"workspaceId": "example",
"provides": [
{
"name": "example",
"entryNodeId": "example",
"entryUri": "example"
}
],
"consumes": [
{
"name": "example",
"consumerNodeId": "example"
}
],
"exports": [
{
"name": "example",
"nodeId": "example"
}
],
"symbolConsumes": [
{
"symbol": "example",
"callerNodeId": "example",
"pkg": "example"
}
]
}

Stitch result

Media typeapplication/json
object
stitched
integer
systemId
string
nullable
edges
Array<object>
object
src
string
dst
string
name
string
Examplegenerated
{
"stitched": 1,
"systemId": "example",
"edges": [
{
"src": "example",
"dst": "example",
"name": "example"
}
]
}