Maxi Dietz
Maxi Dietz

Reputation: 31

SAP CAP switch off annotations of specific service

i woul'd like to use a sap cap service in an c# application (odata feed service/odata client). This odata client doesn't work with annoations in the $metadata file. How can i switch off all annotations for a specific service? Via server.js? Via service implemantion?

enter image description here

Upvotes: 1

Views: 255

Answers (2)

Amit kumar
Amit kumar

Reputation: 2694

Use cds.persistence.exclude annotation in the service which you want to switch off the annotation for.

Upvotes: 0

Theo Sun
Theo Sun

Reputation: 1

The simplest way is to create another service with projection (and without any annotations).

Upvotes: 0

Related Questions