Skip to main content

client.adt.discovery

Returns the ADT service discovery document (AtomPub format) describing all available workspaces and collections.

Methods

MethodHTTPPathSummary
.getDiscovery()GET/sap/bc/adt/discoveryAtomPub service document

Schema

Source: adt-contracts/src/adt/discovery/index.ts Response schema: adt-schemas/discovery

Example

const doc = await client.adt.discovery.getDiscovery();
for (const ws of doc.service?.workspace ?? []) {
console.log(
ws.title,
ws.collection?.map((c) => c.href),
);
}