MCPcopy Index your code
hub / github.com/SAP-samples/cloud-sdk-js / writeFilesToServiceSpecFolder

Function writeFilesToServiceSpecFolder

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

Source from the content-addressed store, hash-verified

47}
48
49export async function writeFilesToServiceSpecFolder(specRoot: string) {
50 await cleanUp(specRoot);
51 const contentCloud = await fetchApiContent('API_BUSINESS_PARTNER');
52 await writeServiceDefintion(
53 specRoot,
54 contentCloud,
55 'API_BUSINESS_PARTNER.edmx'
56 );
57 const contentOp = await fetchApiContent('OP_API_BUSINESS_PARTNER_SRV');
58 await writeServiceDefintion(
59 specRoot,
60 contentOp,
61 'OP_API_BUSINESS_PARTNER_SRV.edmx'
62 );
63 await createServiceMapping(specRoot);
64}
65
66async function cleanUp(specRoot: string) {
67 await rm(specRoot, { recursive: true });

Callers 1

Calls 4

cleanUpFunction · 0.85
fetchApiContentFunction · 0.85
writeServiceDefintionFunction · 0.85
createServiceMappingFunction · 0.85

Tested by

no test coverage detected