Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Expose services of type dataProduct special #131

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aramovic79
Copy link
Member

No description provided.

@aramovic79 aramovic79 linked an issue Feb 17, 2025 that may be closed by this pull request
lib/templates.js Outdated
Comment on lines 279 to 294
apiProtocol: "api",
visibility: RESOURCE_VISIBILITY.internal,
direction: "outbound",
implementationStandard: "sap.dp:data-subscription-api:v1",
entryPoints: [],
resourceDefinitions: [{
type: "sap-csn-interop-effective-v1",
mediaType: "application/json",
url: "<TBD>/Product.csn.json",
accessStrategies: [
{
type: "open"
}
]
}]
}
Copy link
Member Author

@aramovic79 aramovic79 Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the values here are hard-coded.
At least one property should be calculated based on some information coming from the concrete annotated service.
The property "url" is to be defined.
Value(s) of the "accessStrategies" property are obtained and calculated out of environment variables or .cdsrc.json(done in PR 111).
cc: @swennemers @zongqichen

lib/templates.js Outdated
* @returns {Array} An array of objects for the API Resources.
*/
const createDataProductAPIResourceTemplate = (dataProduct) => {
console.log(dataProduct);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be removed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose services of type dataProduct special
2 participants