Skip to content

Commit 3574503

Browse files
authored
Merge pull request #396 from cap-js/chore/move-cds-services-to-separate-folder
chore: Move CDS services to 'lib/services'
2 parents 2b8340f + 8908e16 commit 3574503

File tree

9 files changed

+392
-476
lines changed

9 files changed

+392
-476
lines changed

__tests__/integration/integration-test-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
]
2020
},
2121
"SAP ORD Service": {
22-
"model": "@cap-js/ord/lib/ord-service"
22+
"model": "@cap-js/ord/lib/services/ord-service"
2323
}
2424
}
2525
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const cds = require("@sap/cds");
2-
const ord = require("./ord.js");
3-
const compileMetadata = require("./metaData.js");
4-
const defaults = require("./defaults.js");
5-
const { createAuthConfig, createAuthMiddleware } = require("./auth/authentication.js");
6-
const Logger = require("./logger.js");
2+
const ord = require("../ord.js");
3+
const compileMetadata = require("../metaData.js");
4+
const defaults = require("../defaults.js");
5+
const { createAuthConfig, createAuthMiddleware } = require("../auth/authentication.js");
6+
const Logger = require("../logger.js");
77

88
class OpenResourceDiscoveryService extends cds.ApplicationService {
99
async init() {

memory-bank/activeContext.md

Lines changed: 189 additions & 323 deletions
Large diffs are not rendered by default.

memory-bank/productContext.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ annotate ProcessorService with @ORD.Extensions: {
121121

122122
1. **Automated Compliance**: Ensures ORD specification compliance without manual effort
123123
2. **CAP Native**: Deep integration with CAP framework patterns and conventions
124-
3. **Flexible Security**: Configurable authentication from open access to enterprise-grade security
125-
4. **Comprehensive Coverage**: Supports all major ORD resource types and CAP constructs
124+
3. **Flexible Security**: Configurable authentication open, basic-auth (bcrypt), or CF mTLS
125+
4. **Comprehensive Coverage**: Supports all major ORD resource types, CAP constructs, and protocols (OData, REST, GraphQL, MCP, INA, data products)
126126
5. **Platform Ready**: Designed for enterprise service discovery and catalog platforms
127+
6. **Build Performance**: Parallel resource file generation for fast CI/CD pipelines

memory-bank/projectbrief.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Project Identity
44

55
**Name:** `@cap-js/ord`
6-
**Version:** 1.3.14 (November 2025)
6+
**Version:** 1.5.0 (March 2026)
77
**Type:** CAP Framework Plugin
88
**Repository:** https://github.com/cap-js/ord
99
**License:** Apache-2.0
@@ -39,16 +39,25 @@ This plugin adds support for the [Open Resource Discovery (ORD)](https://open-re
3939
- ORD document generation from CAP CSN models
4040
- REST API endpoints following ORD specification
4141
- Basic authentication with bcrypt password hashing
42+
- CF mTLS authentication for Cloud Foundry deployments
4243
- Custom ORD content integration
4344
- Build system integration for static file generation
45+
- Parallel resource file generation for improved build performance
4446
- Support for both Node.js and Java CAP runtimes
47+
- GraphQL protocol support
48+
- MCP (Model Context Protocol) API resource generation
49+
- INA protocol support
50+
- Multi-protocol service detection
51+
- Auto-generated IntegrationDependencies for consumed Data Products
52+
- Custom compiler options for OpenAPI / AsyncAPI generation
53+
- @OpenAPI.servers annotation support for service-level server URLs
4554

4655
**Out of Scope:**
4756

4857
- Non-CAP application support
4958
- ORD document validation beyond basic structure
5059
- Runtime modification of generated ORD documents
51-
- Support for Node.js versions outside the 18-22 range
60+
- Support for Node.js versions outside the currently supported range (v22)
5261

5362
## Key Constraints
5463

@@ -57,5 +66,5 @@ This plugin adds support for the [Open Resource Discovery (ORD)](https://open-re
5766
- Must maintain performance for large CAP applications
5867
- Must support both development and production environments
5968
- Must handle sensitive metadata appropriately
60-
- Must support Node.js versions 18-22
61-
- Must maintain backward compatibility across versions
69+
- Must support Node.js v22
70+
- Must maintain backward compatibility across versions

0 commit comments

Comments
 (0)