Cross-repo stitching (register provides/consumes, join edges)
POST
/v1/stitch
const url = 'http://localhost:8090/v1/stitch';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"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"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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" } ] }'Request Bodyrequired
Section titled “Request Bodyrequired”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" } ]}Responses
Section titled “ Responses ”Stitch result
Media typeapplication/json
object
stitched
integer
systemId
string
edges
Array<object>
object
src
string
dst
string
name
string
Examplegenerated
{ "stitched": 1, "systemId": "example", "edges": [ { "src": "example", "dst": "example", "name": "example" } ]}