Skip to Content
0
Nov 20 at 05:01 PM

Using odata-v2-adapter for a single service

28 Views Last edit Nov 20 at 08:45 PM 2 rev

Hi,

When using the odata-v2 adapter, is it possible to limit the transformation from v4 to v2 to specific services?

Following the steps from the documentation below works fine, but it exposes all services using both protocols, which we would like to avoid:

https://cap.cloud.sap/docs/advanced/odata#odata-v2-proxy-node

Annotating the servies by specifying the protocol does not have any effect - it is still exposes using both v2 and v4 protocols:

@protocol: 'odata-v4'

service BomService {
...

We've also tried explicitly including the service for which we want the v2 protocol in the options but everything else is exposed with both protocols as well.

"cov2ap": {

"plugin": true,

"services": {

"<odata-v4-service-path>": "<qualified.ServiceName>",

}

}

Than you