
namespace my.bookshop;
entity Books {
key ID : Integer;
title : String;
stock : Integer;
}
using my.bookshop from '../db/data-model';
service CatalogService {
entity BookInfo {
key ID : Integer;
copiesSold: Integer;
}
}
ID: BusinessApplicationCAP
_schema-version: '2.1'
parameters:
deploy_mode: html5-repo
version: 0.0.1
modules:
- name: BusinessApplicationCAP_appRouter
type: approuter.nodejs
path: BusinessApplicationCAP_appRouter
parameters:
disk-quota: 256M
memory: 256M
requires:
- name: rt_BusinessApplicationCAP_appRouter
- name: BusinessApplicationCAP_ui_deployer
type: com.sap.html5.application-content
path: BusinessApplicationCAP_ui_deployer
requires:
- name: dt_BusinessApplicationCAP_ui_deployer
- name: BusinessApplicationCAP-db
type: hdb
path: db
parameters:
memory: 256M
disk-quota: 256M
requires:
- name: BusinessApplicationCAP-hdi-container
- name: BusinessApplicationCAP-srv
type: java
path: srv
parameters:
memory: 1024M
disk-quota: 256M
provides:
- name: srv_api
properties:
url: '${default-url}'
requires:
- name: BusinessApplicationCAP-hdi-container
properties:
JBP_CONFIG_RESOURCE_CONFIGURATION: >-
[tomcat/webapps/ROOT/META-INF/context.xml:
{"service_name_for_DefaultDB" : "~{hdi-container-name}"}]
resources:
- name: rt_BusinessApplicationCAP_appRouter
parameters:
service-plan: app-runtime
service: html5-apps-repo
type: org.cloudfoundry.managed-service
- name: dt_BusinessApplicationCAP_ui_deployer
parameters:
service-plan: app-host
service: html5-apps-repo
type: org.cloudfoundry.managed-service
- name: BusinessApplicationCAP-hdi-container
properties:
hdi-container-name: '${service-name}'
type: com.sap.xs.hdi-container
- name: BusinessApplicationCAP_ui_deployer
type: com.sap.html5.application-content
path: BusinessApplicationCAP_ui_deployer
requires:
- name: dt_BusinessApplicationCAP_ui_deployer
build-parameters:
requires:
- name: ListReport
artifacts:
- './*'
target-path: resources/ListReport
- name: ListReport
type: html5
path: ListReport
build-parameters:
builder: grunt
requires:
- name: srv_api
group: destinations
properties:
forwardAuthToken: true
strictSSL: false
name: srv_api
url: '~{url}'
"dataSources": {
"mainService": {
"uri": "/odata/v2/CatalogService/",
"type": "OData",
"settings": {
"annotations": [
"localAnnotations"
],
"localUri": "localService/metadata.xml"
}
},
"localAnnotations": {
"uri": "annotations/annotation0.xml",
"type": "ODataAnnotation",
"settings": {
"localUri": "annotations/annotation0.xml"
}
}
},
<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Aggregation.V1.xml">
<edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Authorization.V1.xml">
<edmx:Include Alias="Auth" Namespace="Org.OData.Authorization.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Capabilities.V1.xml">
<edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
<edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470971/Communication.xml?api=v2">
<edmx:Include Alias="Communication" Namespace="com.sap.vocabularies.Communication.v1"/>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Measures.V1.xml">
<edmx:Include Alias="Measures" Namespace="Org.OData.Measures.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470968/UI.xml?api=v2">
<edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
</edmx:Reference>
<edmx:Reference Uri="https://oasis-tcs.github.io/odata-vocabularies/vocabularies/Org.OData.Validation.V1.xml">
<edmx:Include Alias="Validation" Namespace="Org.OData.Validation.V1"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Annotations Target="CatalogService.BookInfo">
<Annotation Term="UI.SelectionFields">
<Collection>
<PropertyPath>ID</PropertyPath>
</Collection>
</Annotation>
<Annotation Term="UI.LineItem">
<Collection>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="ID"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="copiesSold"/>
</Record>
</Collection>
</Annotation>
</Annotations>
</Schema>
</edmx:DataServices>
</edmx:Edmx>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
10 | |
8 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |