MCPcopy Create free account
hub / github.com/SAP-samples/cloud-sdk-js / createServiceMapping

Function createServiceMapping

scripts/fetch-service-spec.ts:71–89  ·  view source on GitHub ↗
(specRoot: string)

Source from the content-addressed store, hash-verified

69}
70
71async function createServiceMapping(specRoot: string) {
72 const content = {
73 'resources/service-specs/API_BUSINESS_PARTNER.edmx': {
74 directoryName: 'cloud-business-partner-service',
75 basePath: '/sap/opu/odata/sap/API_BUSINESS_PARTNER',
76 packageName: 'cloud-business-partner-service'
77 },
78 'resources/service-specs/OP_API_BUSINESS_PARTNER_SRV.edmx': {
79 directoryName: 'op-business-partner-service',
80 basePath: '/sap/opu/odata/sap/API_BUSINESS_PARTNER',
81 packageName: 'op-business-partner-service'
82 }
83 };
84 await writeFile(
85 join(specRoot, 'options-per-service.json'),
86 JSON.stringify(content, null, 2),
87 { encoding: 'utf-8' }
88 );
89}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected