Skip to content

Commit 4999d06

Browse files
committedJul 24, 2020
cds xml
1 parent 9241015 commit 4999d06

14 files changed

+55697
-2
lines changed
 

‎CTdemo-o-data_service_for_namespace_sepmra_ovw-1.0.0-swagger.yaml

+6,596
Large diffs are not rendered by default.

‎CTdemo-o-data_service_for_namespace_sepmra_prod_man-1.0.0-swagger.yaml

+9,587
Large diffs are not rendered by default.

‎CothamTechnologies-sap_gwsample_basic-1.0.0-swagger.yaml

+4,781
Large diffs are not rendered by default.

‎SAP-GWSAMPLE.openapi.json

+1
Large diffs are not rendered by default.

‎SAP_SEPMRA_PROD_MAN.openapi.json

+13,365
Large diffs are not rendered by default.

‎SAP_SEPMRA_PROD_MAN.xml

+1
Large diffs are not rendered by default.

‎SAP_SEPMRA_SHOP.openapi.json

+10,836
Large diffs are not rendered by default.

‎SAP_SEPMRA_SHOP.xml

+1
Large diffs are not rendered by default.

‎SAP_sepmra_ovw.openapi.json

+9,531
Large diffs are not rendered by default.

‎SAP_sepmra_ovw.xml

+1
Large diffs are not rendered by default.

‎cdsmetadata.xml

+1
Large diffs are not rendered by default.

‎odataconverter copy.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const { parse, convert } = require('odata2openapi');
2+
3+
// Get the OData metadata as a string.
4+
const xml = '';
5+
6+
const options = {
7+
host: 'https://sapes5.sapdevcenter.com',
8+
path: '/sap/opu/odata/IWBEP/GWSAMPLE_BASIC'
9+
};
10+
11+
parse(xml)
12+
.then(entitySets => convert(entitySets, options))
13+
.then(swagger => console.log(JSON.stringify(swagger, null, 2)))
14+
.catch(error => console.error(error))

‎odataconverter.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ const { parse, convert } = require('odata2openapi');
44
const xml = '';
55

66
const options = {
7-
host: 'https://sapes5.sapdevcenter.com',
8-
path: '/sap/opu/odata/IWBEP/GWSAMPLE_BASIC'
7+
host: 'https://orgf3cfd067.crm11.dynamics.com/api/data/v9.0/$metadata'
98
};
109

1110
parse(xml)

‎sapES5POApprovalmetadata.openapi.json

+981
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)