-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
feat: Expose services of type dataProduct special #131
Conversation
lib/templates.js
Outdated
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" | ||
} | ||
] | ||
}] | ||
} |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be removed...
No description provided.