SAP CAP Adapter to expose OData as custom REST Service
Walks through consuming an external OData V2 service in a CAP project — cds import converts the Northwind service's EDMX into a CSN and cds.connect.to wires up the remote proxy — then re-exposing it as plain REST with the @protocol:'rest' annotation instead of ODataODataExposing data and operations through OData, including the service model, metadata and protocol versions clients require. Version differences affect which clients can consume a service and which query features they can use.SAP and community, narrow by design's own envelope. Shows two ways to reshape the response, renaming and dropping fields in a CDS projection or rewriting the returned objects in a custom service handler, and remaps ?pageSize and ?offset onto OData's $top and $skip in that same handler.
Where it sits
Who is behind it
Before you read it
ApplicabilityCore changedOData changed in @cap-js-community/odata-v2-adapter 1.10.0, 2023-04-05.
This is a derived prompt to re-check the work, not a claim that the work is wrong. Exact stale statements are recorded separately after editorial review.
Properties
About this work
For odata
For data-modelling
Building onedevatlas: the idea, the back-and-forth with AI, the wrong turns, and an orb who lost his permanent spot in the atlas.
Details
Graph
Source
History
- explains → applies_to on capability:odata (cap); capability:data-modelling (cap)Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md).
- Entered the atlasDiscovered via SAP Community · cap-tag.
For your agent
- Ref
content:sap-cap-adapter-to-expose-odata-as-custom-rest-service- JSON
- /content/sap-cap-adapter-to-expose-odata-as-custom-rest-service.json
- MCP
- Connecting an agent