Skip to content

Commit 79af437

Browse files
committed
support odata-v2 annotation
1 parent 011b05b commit 79af437

9 files changed

+357
-230
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## Version 1.12.6 - 2024-03-xx
8+
## Version 1.12.6 - 2024-03-04
99

1010
### Fixed
1111

1212
- Fix build task in case of compilation errors
13+
- Serve OData V2 Adapter routes always after CDS listening (also for non-plugin case)
14+
15+
### Added
16+
17+
- Support OData V2 CDS protocol annotation via (`@protocol: [{ kind: 'odata-v2', path: '<path>' }]`)
18+
- Expose OData V2 service at specified `odata-v2` protocol path, in addition to default endpoint
1319

1420
## Version 1.12.5 - 2024-02-09
1521

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ The following OData V2 adapter for CDS specific annotations are supported:
167167

168168
**Service Level**:
169169

170+
- `@protocol: [{ kind: 'odata-v2', path: '<path>' }]`: Specifies an additional custom relative OData V2 protocol service path (prepending OData V2 protocol prefix)
171+
- `@protocol: [{ kind: 'odata-v2', path: '/<path>' }]`: Specifies an additional custom absolute OData V2 protocol service path (ignoring OData V2 protocol prefix)
170172
- `@cov2ap.ignore`: Exclude service from OData V2 adapter conversion (service is not exposed as OData V2 service)
171173

172174
**Entity Level**:
@@ -249,6 +251,12 @@ cds.on("bootstrap", (app) =>
249251
);
250252
```
251253

254+
### Build Task
255+
256+
CDS OData V2 Adapter includes an CDS build task, that allows to prepare the OData V2 EDMX files for MTX sidecar app.
257+
The build task is automatically active, in case project is running in multi-tenant context including MTX sidecar.
258+
It can be deactivated using option `cds.cov2ap.build: false`.
259+
252260
### Unit-Tests
253261

254262
This repository comes with a suite of unit-tests covering the complete proxy implementation.

package-lock.json

+24-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"xml2js": "^0.6.2"
6161
},
6262
"devDependencies": {
63-
"@cap-js/sqlite": "^1.5.0",
63+
"@cap-js/sqlite": "^1.5.1",
6464
"@cap-js-community/odata-v2-adapter": "./",
6565
"@sap/cds": "^7.6.3",
6666
"@sap/cds-dk": "^7.6.1",
@@ -69,7 +69,7 @@
6969
"compression": "^1.7.4",
7070
"eslint": "^8.56.0",
7171
"eslint-config-prettier": "^9.1.0",
72-
"eslint-plugin-jest": "^27.8.0",
72+
"eslint-plugin-jest": "^27.9.0",
7373
"jest": "^29.7.0",
7474
"prettier": "^3.2.5",
7575
"supertest": "^6.3.4"

0 commit comments

Comments
 (0)