Skip to main content

adt repl

Interactive hypermedia navigator for ADT APIs. Starts a REPL that performs authenticated GET requests, parses the XML/JSON response, extracts hyperlinks, and lets you "walk" from one resource to the next.

Arguments

ArgumentDescription
[url]Optional starting URL path (defaults to /sap/bc/adt/discovery).

Commands (inside the REPL)

CommandDescription
<n>Follow link number n from the last response.
backPop the previous URL from the navigation stack.
get <path>Fetch an arbitrary path.
rawPrint the raw body of the last response.
save <file>Save the last response to <file>.
helpShow REPL help.
quit / exitLeave the REPL.

Examples

# Start at the discovery document
adt repl

# Start somewhere specific
adt repl /sap/bc/adt/repository/nodestructure

See also

  • fetch — single-shot authenticated request
  • discovery — entry point used by default