cap-external-northwind
A CAP service that serves an external OData service as its own: Northwind's Products imported as a CSN model, projected read-only, with the incoming query run against the remote service.
The imported model sits in srv/external/NorthWind.csn and is declared under cds.requires in package.json as kind: odata with credentials: { destination: 'NorthWind' }, naming the destination it is reached through. CatalogService.Products is a @readonly projection naming seven elements, the implementation connects to NorthWind once at init, and its single READ handler runs request.query against that service inside the request's transaction. Beside the model folder srv/ holds only those two files, and sqlite3 is the one devDependency, so the imported model, the requires block and that handler are the whole of it. One commit, from July 2021, on a master branch.
Facts
Where it sits
Who is behind it
In the atlas: maintains 47, contributes to 47, wrote 10@miyasutamaintainer
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
- Use as
- A reference
- Runtime
- Node.js
As a sample
- Declared for
- ^5
- Form
- does not say
Connections
Reaching remote systems without addresses or credentials in the code
Using a remote service as if it were one of your own
Named, credentialed addresses of other systems resolved at runtime
Download
README
quoted from miyasuta/cap-external-northwind, readGetting Started
Welcome to your new project.
It contains these folders and files, following our recommended project layout:
| File or Folder | Purpose |
|---|---|
app/ | content for UI frontends goes here |
db/ | your domain models and data go here |
srv/ | your service models and code go here |
package.json | project metadata and configuration |
readme.md | this getting started guide |
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:miyasuta-cap-external-northwind- JSON
- /artifacts/miyasuta-cap-external-northwind.json
- MCP
- Connecting an agent