cap-js-community / odata-v2-adapter

OData V2 adapter for CDS. Exposes a full-fledged OData V2 service, converting OData V2 requests to CDS OData V4 service calls and responses back.
https://www.npmjs.com/package/@cap-js-community/odata-v2-adapter
Apache License 2.0
25 stars 10 forks source link

Expose only services with protocol odata-v2 #30

Closed oklemenz2 closed 11 months ago

oklemenz2 commented 11 months ago

That means service annotation need to look like this

@protocol: [
  { kind: 'odata-v4', path: 'xyz' },
  { kind: 'odata-v2' }
]

Would result in paths => odata/v4/xyz and odata/v2/xyz Absolute paths (/xyz) would be => /xyz and odata/v2/xyz

Specifying a path for kind odata-v2 is not supported. This is currently not supported, as it is assumed, that the protocol prefix always can be replaced. i.e. odata-v2 => odata-v4 or /

github-actions[bot] commented 11 months ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 11 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.

oklemenz2 commented 11 months ago

Shifted to major refactoring, implementing an odata-v2 protocol adapter as CDS middleware by rewriting same express request, without additional http call. Version 2.0.0.