From 48ef07669ca00f01c90721dbab089111195519e0 Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:22:51 +0200 Subject: [PATCH 1/7] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d27ead1..7f4b009 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ This node module simplifies the consuming external API in a Cloud Application Programming (CAP) Model. The users can use the raw capabilities of the **Axios** node module while still utilizing the following capabilities of CAP framework and SAP Cloud Platform: - Fluent API concept -- Configure SAP Cloud Platform Destination and Connectivity services -- CDS configuration found in **package.json** -- Reuse Axios options for calling API +- Configuration using SAP Cloud Platform Destination and Connectivity services +- Support of SAP OnPremise & Cloud APIs, Microsoft Office 365 APIs, Google Cloud Platform APIs and other REST APIs +- Uses configuration based on Axios Config options ## History -Jhodel Cailan initially started the CDS Extension concept. SAP Mentor Robert Eijpe created a similar concept integrating Microsoft Azure and Google Cloud APIs into a CDS external services concept. The SAP Devtoberfest 2020 challenge brought them together. And they contributes this CDS-SCP-API Node Module to the community, and hope it will make SAP developers life better. +Jhodel Cailan initially started the CDS Extension concept. SAP Mentor Robert Eijpe created a similar concept integrating Microsoft Azure and Google Cloud APIs into a CDS external services concept. The SAP Devtoberfest 2020 challenge brought concepts together. And this results in a CDS-SCP-API Node Module for the community, which will make SAP developers life better. ## Installation From 869262e50d319c74dc76dbf13b8d2eb203872b0f Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:25:03 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7f4b009..559301d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Jhodel Cailan initially started the CDS Extension concept. SAP Mentor Robert Eij Using npm: ```swift -> npm install cds-scp-api +> npm install @sapmentors/cds-scp-api ``` ## Supported Destination Types From 183a13e285c7488c96fb88b20bf02cd7455d371f Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:27:03 +0200 Subject: [PATCH 3/7] Update README.md --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 559301d..d50ef3b 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,6 @@ Using npm: ```swift > npm install @sapmentors/cds-scp-api ``` -## Supported Destination Types - -- Internet Destinations with No Authentication -- Internet Destinations with Basic Authentication -- Internet Destinations with Client Credentials Authentication (including Microsoft Azure) -- Internet Destinations with JWT token Authentication (currently only Google Cloud Platform) -- OnPremise Destination and Connectivity via Cloud Connector with No Authentication -- OnPremise Destinations and Connectivity via Cloud Connector with Basic Authentication ## Javascript/Node.js Code ```javascript @@ -41,6 +33,19 @@ let result = await service.run({ }) ``` +## Example Programs + +Click [here](./examples/readme.md) for examples and environment setup + +## Supported Destination Types + +- Internet Destinations with No Authentication +- Internet Destinations with Basic Authentication +- Internet Destinations with Client Credentials Authentication (including Microsoft Azure) +- Internet Destinations with JWT token Authentication (currently only Google Cloud Platform) +- OnPremise Destination and Connectivity via Cloud Connector with No Authentication +- OnPremise Destinations and Connectivity via Cloud Connector with Basic Authentication + ## SCP Destination Configuration Examples - [SAP Cloud Platform Internet Destinations with No Authentication](./docs/InternetAPIwithNoAuthentication.md) @@ -136,5 +141,3 @@ async function SimultaneousRequests() { } ``` -## Example Program for Node Module -Click [here](./examples/readme.md) for examples and environment setup From 96c176e722f359f21aa302a33bd6306d62c5ab80 Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:40:40 +0200 Subject: [PATCH 4/7] Update InternetAPIwithNoAuthentication.md --- docs/InternetAPIwithNoAuthentication.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/InternetAPIwithNoAuthentication.md b/docs/InternetAPIwithNoAuthentication.md index 3b89cc3..455e022 100644 --- a/docs/InternetAPIwithNoAuthentication.md +++ b/docs/InternetAPIwithNoAuthentication.md @@ -4,7 +4,7 @@ These destinations are pointing to the demo OData service API https://services.odata.org/v4/Northwind/Northwind.svc/ of odata.org. This API endpoint doesn't need authentication. ## No Authentication Example -- [Retrieve a product list from public available OData Service called Northwind](./InternetProxy/ReadPublicApiNorthwindWithNoAuthentication.js) - Standalone Node.js/Javascript Example +- [Retrieve a product list from public available OData Service called Northwind](./examples/InternetProxy/ReadPublicApiNorthwindWithNoAuthentication.js) - Standalone Node.js/Javascript Example ## Destination Configuration in SAP Cloud Platform Destination Service @@ -37,4 +37,4 @@ InternetAPIGetRequestwithNoAuthentication() ## Output Javascript/Node.js Code ```javascript Chai -``` \ No newline at end of file +``` From 69fc84a035dd54564ea03c0459d7fbbc820fd366 Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:41:40 +0200 Subject: [PATCH 5/7] Update InternetAPIwithNoAuthentication.md --- docs/InternetAPIwithNoAuthentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/InternetAPIwithNoAuthentication.md b/docs/InternetAPIwithNoAuthentication.md index 455e022..25e4c2f 100644 --- a/docs/InternetAPIwithNoAuthentication.md +++ b/docs/InternetAPIwithNoAuthentication.md @@ -4,7 +4,7 @@ These destinations are pointing to the demo OData service API https://services.odata.org/v4/Northwind/Northwind.svc/ of odata.org. This API endpoint doesn't need authentication. ## No Authentication Example -- [Retrieve a product list from public available OData Service called Northwind](./examples/InternetProxy/ReadPublicApiNorthwindWithNoAuthentication.js) - Standalone Node.js/Javascript Example +- [Retrieve a product list from public available OData Service called Northwind](../examples/InternetProxy/ReadPublicApiNorthwindWithNoAuthentication.js) - Standalone Node.js/Javascript Example ## Destination Configuration in SAP Cloud Platform Destination Service From 565e81bc80f50f2d5789026c8dcbad68cada4709 Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 12:42:44 +0200 Subject: [PATCH 6/7] Update InternetAPIwithBasicAuthentication.md --- docs/InternetAPIwithBasicAuthentication.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/InternetAPIwithBasicAuthentication.md b/docs/InternetAPIwithBasicAuthentication.md index dd10871..ffbe75d 100644 --- a/docs/InternetAPIwithBasicAuthentication.md +++ b/docs/InternetAPIwithBasicAuthentication.md @@ -5,8 +5,8 @@ This example uses APIs of the SAP Gateway Demo System **ES5**. If you don't have access to the SAP Gateway Demo System ES5, you can follow this [tutorial](https://developers.sap.com/tutorials/gateway-demo-signup.html) to get access. ## Basic Authentication Examples -- [Retrieve a product list from public available SAP OData service](./InternetProxy/ReadProductsOfErpWithBasicAuthentication.js) - Standalone Node.js/Javascript Example -- [Create a product with public available SAP OData service](./InternetProxy/CreateProductInErpWithBasicAuthentication.js) - Standalone Node.js/Javascript Example +- [Retrieve a product list from public available SAP OData service](../examples/InternetProxy/ReadProductsOfErpWithBasicAuthentication.js) - Standalone Node.js/Javascript Example +- [Create a product with public available SAP OData service](../examples/InternetProxy/CreateProductInErpWithBasicAuthentication.js) - Standalone Node.js/Javascript Example ## Destination Configuration in SAP Cloud Platform Destination Service @@ -32,4 +32,4 @@ InternetAPIGetRequestwithBasicAuthentication() ## Output Javascript/Node.js Code ```javascript 'Notebook Basic 15' -``` \ No newline at end of file +``` From ada1d118db775133e9bee5869bffcebac8177acb Mon Sep 17 00:00:00 2001 From: Robert Eijpe Date: Mon, 12 Oct 2020 13:02:43 +0200 Subject: [PATCH 7/7] Update README.md --- README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d50ef3b..4303a43 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ # CDS-SCP-API Node Module ## CDS Extension for SAP Cloud Platform API Consumption -This node module simplifies the consuming external API in a Cloud Application Programming (CAP) Model. -The users can use the raw capabilities of the **Axios** node module while still utilizing the following capabilities of CAP framework and SAP Cloud Platform: -- Fluent API concept -- Configuration using SAP Cloud Platform Destination and Connectivity services -- Support of SAP OnPremise & Cloud APIs, Microsoft Office 365 APIs, Google Cloud Platform APIs and other REST APIs -- Uses configuration based on Axios Config options +The node module CDS-SCP-API simplifies the consuming external API from SAP OnPremise & Cloud APIs, Microsoft Office 365 APIs, Google Cloud Platform APIs, and other REST APIs in a Cloud Application Programming (CAP) Model on the SAP Cloud Platform. The module provides: +- Fluent API consumption concept +- Endpoint and Configuration using SAP Cloud Platform Destination and Connectivity services +- Support of all kind of APIs including SAP OnPremise & Cloud OData and Rest APIs, Microsoft Office 365 APIs, Google Cloud Platform APIs and other REST APIs +- Easy API http request configuration based on Axios config options ## History -Jhodel Cailan initially started the CDS Extension concept. SAP Mentor Robert Eijpe created a similar concept integrating Microsoft Azure and Google Cloud APIs into a CDS external services concept. The SAP Devtoberfest 2020 challenge brought concepts together. And this results in a CDS-SCP-API Node Module for the community, which will make SAP developers life better. +Jhodel Cailan initially started the CDS Extension concept. SAP Mentor Robert Eijpe created a similar concept integrating Microsoft Azure and Google Cloud APIs into a CDS external services concept. The SAP Devtoberfest 2020 challenge brought concepts together. And this results in a CDS-SCP-API Node Module for the community, making SAP developers' lives better. ## Installation