Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Using odata-v2-adapter for a single service

elia_shalish
Advisor
Advisor
0 Kudos

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

  • SAP Managed Tags:
1 ACCEPTED SOLUTION

elia_shalish
Advisor
Advisor
0 Kudos

A solution was provided in version 1.11.10 of the odata-v2-adapter.
https://sap.stackenterprise.co/a/46031/6648

  • SAP Managed Tags:
1 REPLY 1

elia_shalish
Advisor
Advisor
0 Kudos

A solution was provided in version 1.11.10 of the odata-v2-adapter.
https://sap.stackenterprise.co/a/46031/6648

  • SAP Managed Tags: