Date: Wed, 23 Aug 2023 17:25:26 +1000
Subject: [PATCH 12/47] Updated code samples Rebuild
---
...72wrtk => additional20230823-32398-a9bva7} | 0
.../includes/additional/candidates/telco.html | 396 +++--
docs/includes/cds_admin | 47 +-
docs/includes/cds_banking | 367 +++--
docs/includes/cds_common | 80 +-
docs/includes/cds_dcr | 84 +-
docs/includes/cds_energy | 505 +++---
docs/includes/cds_energy_sdh | 147 +-
docs/includes/cds_register | 180 ++-
docs/includes/cds_telco | 396 +++--
docs/index.html | 1410 ++++++++++-------
slate/source/includes/cds_admin.md | 51 +-
slate/source/includes/cds_banking.md | 401 +++--
slate/source/includes/cds_common.md | 88 +-
slate/source/includes/cds_dcr.md | 92 +-
slate/source/includes/cds_energy.md | 551 ++++---
slate/source/includes/cds_energy_sdh.md | 159 +-
slate/source/includes/cds_register.md | 198 ++-
slate/source/includes/cds_telco.md | 432 +++--
.../releasenotes/releasenotes.1.26.0.html.md | 2 +
swagger-gen/cds_admin.md | 51 +-
swagger-gen/cds_banking.md | 401 +++--
swagger-gen/cds_common.md | 88 +-
swagger-gen/cds_dcr.md | 92 +-
swagger-gen/cds_energy.md | 551 ++++---
swagger-gen/cds_energy_sdh.md | 159 +-
swagger-gen/cds_register.md | 198 ++-
swagger-gen/cds_telco.md | 432 +++--
swagger-gen/create_markdown.sh | 16 +-
29 files changed, 4672 insertions(+), 2902 deletions(-)
rename docs/includes/additional/{additional20230823-28902-172wrtk => additional20230823-32398-a9bva7} (100%)
diff --git a/docs/includes/additional/additional20230823-28902-172wrtk b/docs/includes/additional/additional20230823-32398-a9bva7
similarity index 100%
rename from docs/includes/additional/additional20230823-28902-172wrtk
rename to docs/includes/additional/additional20230823-32398-a9bva7
diff --git a/docs/includes/additional/candidates/telco.html b/docs/includes/additional/candidates/telco.html
index e2ae31dc..677c3d1d 100644
--- a/docs/includes/additional/candidates/telco.html
+++ b/docs/includes/additional/candidates/telco.html
@@ -621,22 +621,26 @@ Get Telco Products
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/products
@@ -911,22 +915,26 @@ Get Telco Product Detail
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/products/{productId}
@@ -1164,7 +1172,9 @@ Get Usage For Telco Service
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1175,15 +1185,17 @@ Get Usage For Telco Service
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{serviceId}/usage
@@ -1455,7 +1467,9 @@ Get Usage
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1466,15 +1480,17 @@ Get Usage
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/usage
@@ -1752,7 +1768,16 @@ Get Usage For Specific Telco Servi
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "serviceIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1764,15 +1789,17 @@ Get Usage For Specific Telco Servi
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/usage
@@ -2075,7 +2102,9 @@ Get Telco Accounts
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2086,15 +2115,17 @@ Get Telco Accounts
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts
@@ -2367,7 +2398,9 @@ Get Telco Account Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2378,15 +2411,17 @@ Get Telco Account Detail
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}
@@ -2618,7 +2653,9 @@ Get Telco Agreed Payment Schedule
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2629,15 +2666,17 @@ Get Telco Agreed Payment Schedule
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/payment-schedule
@@ -2874,7 +2913,9 @@ Get Telco Concessions
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2885,15 +2926,17 @@ Get Telco Concessions
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/concessions
@@ -3113,7 +3156,9 @@ Get Balance For Telco Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3124,15 +3169,17 @@ Get Balance For Telco Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/balance
@@ -3390,7 +3437,9 @@ Get Bulk Telco Balances
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3401,15 +3450,17 @@ Get Bulk Telco Balances
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/balance
@@ -3689,7 +3740,16 @@ Get Balances For Specific Telc
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3701,15 +3761,17 @@ Get Balances For Specific Telc
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/balance
@@ -4028,7 +4090,9 @@ Get Invoices For Telco Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4039,15 +4103,17 @@ Get Invoices For Telco Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/invoices
@@ -4335,7 +4401,9 @@ Get Telco Invoices
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4346,15 +4414,17 @@ Get Telco Invoices
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/invoices
@@ -4658,7 +4728,16 @@ Get Invoices For Specific Telc
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -4670,15 +4749,17 @@ Get Invoices For Specific Telc
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/invoices
@@ -5021,7 +5102,9 @@ Get Transactions For Telco Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -5032,15 +5115,17 @@ Get Transactions For Telco Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/transactions
@@ -5332,7 +5417,9 @@ Get Telco Transactions
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -5343,15 +5430,17 @@ Get Telco Transactions
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/transactions
@@ -5624,7 +5713,16 @@ Get Transactions For Speci
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -5636,15 +5734,17 @@ Get Transactions For Speci
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/transactions
diff --git a/docs/includes/cds_admin b/docs/includes/cds_admin
index 10f9dba7..7ad3fa43 100644
--- a/docs/includes/cds_admin
+++ b/docs/includes/cds_admin
@@ -11,7 +11,14 @@
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "action": "REFRESH"
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -19,15 +26,17 @@
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/register/metadata',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/admin/register/metadata',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /admin/register/metadata
@@ -168,22 +177,26 @@ This operation may only be called by the CDR Register
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/metrics',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/admin/metrics',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /admin/metrics
diff --git a/docs/includes/cds_banking b/docs/includes/cds_banking
index d2a33199..d3459069 100644
--- a/docs/includes/cds_banking
+++ b/docs/includes/cds_banking
@@ -14,7 +14,9 @@
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -25,15 +27,17 @@
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts
@@ -349,7 +353,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -360,15 +366,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/balances
@@ -685,7 +693,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -697,15 +714,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /banking/accounts/balances
@@ -951,7 +970,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -962,15 +983,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}/balance
@@ -1179,7 +1202,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1190,15 +1215,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}
@@ -1588,7 +1615,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1599,15 +1628,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}/transactions
@@ -1910,7 +1941,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1921,15 +1954,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}/transactions/{transactionId}
@@ -2162,7 +2197,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2173,15 +2210,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}/direct-debits
@@ -2426,7 +2465,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2437,15 +2478,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/direct-debits
@@ -2760,7 +2803,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2772,15 +2824,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /banking/accounts/direct-debits
@@ -3024,7 +3078,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3035,15 +3091,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/accounts/{accountId}/payments/scheduled
@@ -3378,7 +3436,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3389,15 +3449,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/payments/scheduled
@@ -3802,7 +3864,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3814,15 +3885,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /banking/payments/scheduled
@@ -4156,7 +4229,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4167,15 +4242,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/payees
@@ -4432,7 +4509,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4443,15 +4522,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/payees/{payeeId}
@@ -4715,22 +4796,26 @@ To perform this operation, you must be authenticated and authorised with the fol
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/products
@@ -5065,22 +5150,26 @@ This operation does not require authentication
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /banking/products/{productId}
diff --git a/docs/includes/cds_common b/docs/includes/cds_common
index b50d7295..ab0c8efa 100644
--- a/docs/includes/cds_common
+++ b/docs/includes/cds_common
@@ -14,7 +14,9 @@
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -25,15 +27,17 @@
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /common/customer
@@ -250,7 +254,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -261,15 +267,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer/detail',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer/detail',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /common/customer/detail
@@ -572,22 +580,26 @@ To perform this operation, you must be authenticated and authorised with the fol
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/status',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /discovery/status
@@ -715,22 +727,26 @@ This operation does not require authentication
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/outages',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/outages',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /discovery/outages
diff --git a/docs/includes/cds_dcr b/docs/includes/cds_dcr
index c4fb475c..f9c68295 100644
--- a/docs/includes/cds_dcr
+++ b/docs/includes/cds_dcr
@@ -9,21 +9,25 @@
Content-Type: application/jwt
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json'
};
-$.ajax({
- url: 'https://data.holder.com.au/register',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /register
@@ -154,21 +158,25 @@ This operation does not require authentication
Accept: application/json
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'get',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /register/{ClientId}
@@ -326,22 +334,26 @@ To perform this operation, you must be authenticated and authorised with the fol
Accept: application/json
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'put',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
PUT /register/{ClientId}
@@ -515,20 +527,24 @@ To perform this operation, you must be authenticated and authorised with the fol
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'delete',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'DELETE',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
DELETE /register/{ClientId}
diff --git a/docs/includes/cds_energy b/docs/includes/cds_energy
index 3ec1c82d..c787cb98 100644
--- a/docs/includes/cds_energy
+++ b/docs/includes/cds_energy
@@ -10,22 +10,26 @@ Accept: application/json
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans',
- method: 'get',
+fetch('/energy/plans',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/plans
@@ -298,22 +302,26 @@ Accept: application/json
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans/{planId}',
- method: 'get',
+fetch('/energy/plans/{planId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/plans/{planId}
@@ -964,7 +972,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -975,15 +985,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints',
- method: 'get',
+fetch('/energy/electricity/servicepoints',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints
@@ -1210,7 +1222,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1221,15 +1235,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints/{servicePointId}
@@ -1513,7 +1529,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1524,15 +1542,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints/{servicePointId}/usage
@@ -1835,7 +1855,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1846,15 +1868,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints/usage
@@ -2138,7 +2162,16 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2150,15 +2183,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /energy/electricity/servicepoints/usage
@@ -2481,7 +2516,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2492,15 +2529,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints/{servicePointId}/der
@@ -2746,7 +2785,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2757,15 +2798,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/electricity/servicepoints/der
@@ -3030,7 +3073,16 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3042,15 +3094,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /energy/electricity/servicepoints/der
@@ -3354,7 +3408,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3365,15 +3421,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts',
- method: 'get',
+fetch('/energy/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts
@@ -3635,7 +3693,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3646,15 +3706,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}',
- method: 'get',
+fetch('/energy/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}
@@ -4237,7 +4299,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4248,15 +4312,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('/energy/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}/payment-schedule
@@ -4486,7 +4552,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4497,15 +4565,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}/concessions',
- method: 'get',
+fetch('/energy/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}/concessions
@@ -4718,7 +4788,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4729,15 +4801,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}/balance',
- method: 'get',
+fetch('/energy/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}/balance
@@ -4935,7 +5009,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4946,15 +5022,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'get',
+fetch('/energy/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/balances
@@ -5172,7 +5250,16 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -5184,15 +5271,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /energy/accounts/balances
@@ -5449,7 +5538,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -5460,15 +5551,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}/invoices',
- method: 'get',
+fetch('/energy/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}/invoices
@@ -5770,7 +5863,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -5781,15 +5876,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'get',
+fetch('/energy/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/invoices
@@ -6072,7 +6169,16 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -6084,15 +6190,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /energy/accounts/invoices
@@ -6414,7 +6522,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -6425,15 +6535,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/{accountId}/billing',
- method: 'get',
+fetch('/energy/accounts/{accountId}/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/{accountId}/billing
@@ -6766,7 +6878,9 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -6777,15 +6891,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'get',
+fetch('/energy/accounts/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /energy/accounts/billing
@@ -7099,7 +7215,16 @@ x-fapi-auth-date: string
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -7111,15 +7236,17 @@ x-cds-client-headers: string
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/billing',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /energy/accounts/billing
diff --git a/docs/includes/cds_energy_sdh b/docs/includes/cds_energy_sdh
index d50ead71..a2354070 100644
--- a/docs/includes/cds_energy_sdh
+++ b/docs/includes/cds_energy_sdh
@@ -13,7 +13,16 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -23,15 +32,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /secondary/energy/electricity/servicepoints
@@ -281,7 +292,9 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -290,15 +303,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /secondary/energy/electricity/servicepoints/{servicePointId}
@@ -565,7 +580,9 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -574,15 +591,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /secondary/energy/electricity/servicepoints/{servicePointId}/usage
@@ -869,7 +888,16 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -879,15 +907,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /secondary/energy/electricity/servicepoints/usage
@@ -1193,7 +1223,9 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1202,15 +1234,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /secondary/energy/electricity/servicepoints/{servicePointId}/der
@@ -1440,7 +1474,16 @@ x-min-v: string
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1450,15 +1493,17 @@ x-cds-arrangement: string
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /secondary/energy/electricity/servicepoints/der
diff --git a/docs/includes/cds_register b/docs/includes/cds_register
index 3e0a9990..2a056a89 100644
--- a/docs/includes/cds_register
+++ b/docs/includes/cds_register
@@ -8,20 +8,24 @@
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https://<register-base-url>/idp/.well-known/openid-configuration',
- method: 'get',
+fetch('https://<register-base-url>/idp/.well-known/openid-configuration',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /idp/.well-known/openid-configuration
@@ -112,20 +116,24 @@ This operation does not require authentication
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/jwks',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/jwks',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/jwks
@@ -200,7 +208,9 @@ Authorization: string
x-v: 1
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-v':'1',
@@ -208,15 +218,17 @@ x-min-v: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-holders/brands
@@ -453,7 +465,9 @@ x-v: string
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -461,15 +475,17 @@ If-None-Match: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands/summary',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands/summary',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-holders/brands/summary
@@ -671,7 +687,9 @@ x-v: 1
x-min-v: string
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -679,15 +697,17 @@ Authorization: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa
@@ -883,7 +903,9 @@ x-v: 1
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -891,15 +913,17 @@ If-None-Match: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-holders/status
@@ -1085,7 +1109,9 @@ x-v: 1
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -1093,15 +1119,17 @@ If-None-Match: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-recipients/brands/software-products/status
@@ -1289,7 +1317,9 @@ x-v: 1
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -1297,15 +1327,17 @@ If-None-Match: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-recipients/status
@@ -1493,7 +1525,9 @@ x-v: 2
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'2',
'x-min-v':'string',
@@ -1501,15 +1535,17 @@ If-None-Match: string
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /cdr-register/v1/{industry}/data-recipients
diff --git a/docs/includes/cds_telco b/docs/includes/cds_telco
index 984b4b57..667d6a3f 100644
--- a/docs/includes/cds_telco
+++ b/docs/includes/cds_telco
@@ -10,22 +10,26 @@
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/products
@@ -300,22 +304,26 @@ This operation does not require authentication
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/products/{productId}
@@ -553,7 +561,9 @@ This operation does not require authentication
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -564,15 +574,17 @@ This operation does not require authentication
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{serviceId}/usage
@@ -844,7 +856,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -855,15 +869,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/usage
@@ -1141,7 +1157,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "serviceIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1153,15 +1178,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/usage
@@ -1464,7 +1491,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1475,15 +1504,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts
@@ -1756,7 +1787,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1767,15 +1800,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}
@@ -2007,7 +2042,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2018,15 +2055,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/payment-schedule
@@ -2263,7 +2302,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2274,15 +2315,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/concessions
@@ -2502,7 +2545,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2513,15 +2558,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/balance
@@ -2779,7 +2826,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2790,15 +2839,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/balance
@@ -3078,7 +3129,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3090,15 +3150,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/balance
@@ -3417,7 +3479,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3428,15 +3492,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/invoices
@@ -3724,7 +3790,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3735,15 +3803,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/invoices
@@ -4047,7 +4117,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -4059,15 +4138,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/invoices
@@ -4410,7 +4491,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4421,15 +4504,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/{accountId}/transactions
@@ -4721,7 +4806,9 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4732,15 +4819,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
GET /telco/accounts/transactions
@@ -5013,7 +5102,16 @@ To perform this operation, you must be authenticated and authorised with the fol
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -5025,15 +5123,17 @@ To perform this operation, you must be authenticated and authorised with the fol
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
POST /telco/accounts/transactions
diff --git a/docs/index.html b/docs/index.html
index ffd1ffac..d4bbb6b7 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -7262,21 +7262,25 @@ Register Data Recipient oAuth Clie
Content-Type: application/jwt
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json'
};
-$.ajax({
- url: 'https://data.holder.com.au/register',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -7415,21 +7419,25 @@ Get oAuth Client Registration
Accept: application/json
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'get',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -7597,22 +7605,26 @@ Update Data Recipient Registration
Accept: application/json
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'put',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -7796,20 +7808,24 @@ Delete Data Recipient o
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'delete',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'DELETE',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -8597,20 +8613,24 @@ Get OpenId Provider Config
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https://<register-base-url>/idp/.well-known/openid-configuration',
- method: 'get',
+fetch('https://<register-base-url>/idp/.well-known/openid-configuration',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -8709,20 +8729,24 @@ Get JWKS
Accept: application/json
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/jwks',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/jwks',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -8805,7 +8829,9 @@ Get Data Holder Brands
x-v: 1
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-v':'1',
@@ -8813,15 +8839,17 @@ Get Data Holder Brands
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -9070,7 +9098,9 @@ Get Data Holder Brands Summary
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -9078,15 +9108,17 @@ Get Data Holder Brands Summary
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands/summary',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/brands/summary',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -9300,7 +9332,9 @@ Get Software Statement Assertion (
x-min-v: string
Authorization: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -9308,15 +9342,17 @@ Get Software Statement Assertion (
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -9524,7 +9560,9 @@ Get Data Holder Statuses
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -9532,15 +9570,17 @@ Get Data Holder Statuses
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-holders/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-holders/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -9738,7 +9778,9 @@ Get Software Products Statuses
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -9746,15 +9788,17 @@ Get Software Products Statuses
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -9954,7 +9998,9 @@ Get Data Recipients Statuses
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -9962,15 +10008,17 @@ Get Data Recipients Statuses
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/status',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -10170,7 +10218,9 @@ Get Data Recipients
x-min-v: string
If-None-Match: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'2',
'x-min-v':'string',
@@ -10178,15 +10228,17 @@ Get Data Recipients
};
-$.ajax({
- url: 'https://<register-base-url>/cdr-register/v1/{industry}/data-recipients',
- method: 'get',
+fetch('https://<register-base-url>/cdr-register/v1/{industry}/data-recipients',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -12636,7 +12688,9 @@ Get Accounts
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -12647,15 +12701,17 @@ Get Accounts
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -12983,7 +13039,9 @@ Get Bulk Balances
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -12994,15 +13052,17 @@ Get Bulk Balances
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -13331,7 +13391,16 @@ Get Balances For Specific Accounts
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -13343,15 +13412,17 @@ Get Balances For Specific Accounts
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -13605,7 +13676,9 @@ Get Account Balance
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -13616,15 +13689,17 @@ Get Account Balance
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -13843,7 +13918,9 @@ Get Account Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -13854,15 +13931,17 @@ Get Account Detail
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -14262,7 +14341,9 @@ Get Transactions For Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -14273,15 +14354,17 @@ Get Transactions For Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -14594,7 +14677,9 @@ Get Transaction Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -14605,15 +14690,17 @@ Get Transaction Detail
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -14856,7 +14943,9 @@ Get Direct Debits For Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -14867,15 +14956,17 @@ Get Direct Debits For Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -15130,7 +15221,9 @@ Get Bulk Direct Debits
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -15141,15 +15234,17 @@ Get Bulk Direct Debits
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -15476,7 +15571,16 @@ Get Direct Debits For Specific
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -15488,15 +15592,17 @@ Get Direct Debits For Specific
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -15748,7 +15854,9 @@ Get Scheduled Payments for Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -15759,15 +15867,17 @@ Get Scheduled Payments for Account
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -16112,7 +16222,9 @@ Get Scheduled Payments Bulk
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -16123,15 +16235,17 @@ Get Scheduled Payments Bulk
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -16548,7 +16662,16 @@ Get Scheduled Payments For
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -16560,15 +16683,17 @@ Get Scheduled Payments For
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -16910,7 +17035,9 @@ Get Payees
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -16921,15 +17048,17 @@ Get Payees
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -17198,7 +17327,9 @@ Get Payee Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -17209,15 +17340,17 @@ Get Payee Detail
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -17491,22 +17624,26 @@ Get Products
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -17863,22 +18000,26 @@ Get Product Detail
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -25577,22 +25718,26 @@ Get Generic Plans
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans',
- method: 'get',
+fetch('/energy/plans',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -25877,22 +26022,26 @@ Get Generic Plan Detail
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans/{planId}',
- method: 'get',
+fetch('/energy/plans/{planId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -26553,7 +26702,9 @@ Get Service Points
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -26564,15 +26715,17 @@ Get Service Points
};
-$.ajax({
- url: '/energy/electricity/servicepoints',
- method: 'get',
+fetch('/energy/electricity/servicepoints',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -26809,7 +26962,9 @@ Get Service Point Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -26820,15 +26975,17 @@ Get Service Point Detail
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -27122,7 +27279,9 @@ Get Usage For Service Point
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -27133,15 +27292,17 @@ Get Usage For Service Point
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -27456,7 +27617,9 @@ Get Bulk Usage
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -27467,15 +27630,17 @@ Get Bulk Usage
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -27771,7 +27936,16 @@ Get Usage For Specific Service Po
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -27783,15 +27957,17 @@ Get Usage For Specific Service Po
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -28122,7 +28298,9 @@ Get DER For Service Point
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -28133,15 +28311,17 @@ Get DER For Service Point
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -28397,7 +28577,9 @@ Get Bulk DER
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -28408,15 +28590,17 @@ Get Bulk DER
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -28691,7 +28875,16 @@ Get DER For Specific Service Points
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -28703,15 +28896,17 @@ Get DER For Specific Service Points
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -29023,7 +29218,9 @@ Get Energy Accounts
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -29034,15 +29231,17 @@ Get Energy Accounts
};
-$.ajax({
- url: '/energy/accounts',
- method: 'get',
+fetch('/energy/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -29316,7 +29515,9 @@ Get Energy Account Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -29327,15 +29528,17 @@ Get Energy Account Detail
};
-$.ajax({
- url: '/energy/accounts/{accountId}',
- method: 'get',
+fetch('/energy/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -29928,7 +30131,9 @@ Get Agreed Payment Schedule
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -29939,15 +30144,17 @@ Get Agreed Payment Schedule
};
-$.ajax({
- url: '/energy/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('/energy/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -30187,7 +30394,9 @@ Get Concessions
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -30198,15 +30407,17 @@ Get Concessions
};
-$.ajax({
- url: '/energy/accounts/{accountId}/concessions',
- method: 'get',
+fetch('/energy/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -30429,7 +30640,9 @@ Get Balance For Energy Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -30440,15 +30653,17 @@ Get Balance For Energy Account
};
-$.ajax({
- url: '/energy/accounts/{accountId}/balance',
- method: 'get',
+fetch('/energy/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -30656,7 +30871,9 @@ Get Bulk Balances for Energy
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -30667,15 +30884,17 @@ Get Bulk Balances for Energy
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'get',
+fetch('/energy/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -30903,7 +31122,16 @@ Get Balances For Specific Ene
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -30915,15 +31143,17 @@ Get Balances For Specific Ene
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -31188,7 +31418,9 @@ Get Invoices For Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31199,15 +31431,17 @@ Get Invoices For Account
};
-$.ajax({
- url: '/energy/accounts/{accountId}/invoices',
- method: 'get',
+fetch('/energy/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -31519,7 +31753,9 @@ Get Bulk Invoices
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31530,15 +31766,17 @@ Get Bulk Invoices
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'get',
+fetch('/energy/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -31831,7 +32069,16 @@ Get Invoices For Specific Accounts
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -31843,15 +32090,17 @@ Get Invoices For Specific Accounts
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -32181,7 +32430,9 @@ Get Billing For Account
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -32192,15 +32443,17 @@ Get Billing For Account
};
-$.ajax({
- url: '/energy/accounts/{accountId}/billing',
- method: 'get',
+fetch('/energy/accounts/{accountId}/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -32543,7 +32796,9 @@ Get Bulk Billing
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -32554,15 +32809,17 @@ Get Bulk Billing
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'get',
+fetch('/energy/accounts/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -32886,7 +33143,16 @@ Get Billing For Specific Accounts
var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -32898,15 +33164,17 @@ Get Billing For Specific Accounts
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/billing',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -43462,7 +43730,9 @@ Get Customer
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -43473,15 +43743,17 @@ Get Customer
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -43712,7 +43984,9 @@ Get Customer Detail
x-fapi-customer-ip-address: string
x-cds-client-headers: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -43723,15 +43997,17 @@ Get Customer Detail
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer/detail',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer/detail',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -44044,22 +44320,26 @@ Get Status
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/status',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -44197,22 +44477,26 @@ Get Outages
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/outages',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/outages',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -46101,7 +46385,14 @@
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "action": "REFRESH"
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -46109,15 +46400,17 @@
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/register/metadata',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/admin/register/metadata',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -46266,22 +46559,26 @@ Get Metrics
x-v: string
x-min-v: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/metrics',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/admin/metrics',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -49663,7 +49960,16 @@ Get Service Points (SR)
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -49673,15 +49979,17 @@ Get Service Points (SR)
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -49939,7 +50247,9 @@ Get Service Point Detail (SR)
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -49948,15 +50258,17 @@ Get Service Point Detail (SR)
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -50233,7 +50545,9 @@ Get Usage For Service Point (SR)
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -50242,15 +50556,17 @@ Get Usage For Service Point (SR)
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -50549,7 +50865,16 @@ Get Usage For Specific Service
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -50559,15 +50884,17 @@ Get Usage For Specific Service
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -50881,7 +51208,9 @@ Get DER For Service Point (SR)
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -50890,15 +51219,17 @@ Get DER For Service Point (SR)
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
@@ -51138,7 +51469,16 @@ Get DER For Specific Service Poi
x-fapi-interaction-id: string
x-cds-arrangement: string
-var headers = {
+
const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -51148,15 +51488,17 @@ Get DER For Specific Service Poi
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
diff --git a/slate/source/includes/cds_admin.md b/slate/source/includes/cds_admin.md
index adf6ae4a..c0b6c67c 100644
--- a/slate/source/includes/cds_admin.md
+++ b/slate/source/includes/cds_admin.md
@@ -16,8 +16,15 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "action": "REFRESH"
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -25,15 +32,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/register/metadata',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/admin/register/metadata',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -119,23 +128,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/metrics',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/admin/metrics',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_banking.md b/slate/source/includes/cds_banking.md
index 8235ac98..238bb017 100644
--- a/slate/source/includes/cds_banking.md
+++ b/slate/source/includes/cds_banking.md
@@ -19,8 +19,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31,15 +33,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -174,8 +178,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -186,15 +192,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -330,8 +338,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -343,15 +360,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -477,8 +496,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -489,15 +510,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -597,8 +620,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -609,15 +634,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -898,8 +925,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -910,15 +939,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1054,8 +1085,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1066,15 +1099,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1192,8 +1227,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1204,15 +1241,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1325,8 +1364,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1337,15 +1378,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1479,8 +1522,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1492,15 +1544,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1624,8 +1678,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1636,15 +1692,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1847,8 +1905,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1859,15 +1919,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2091,8 +2153,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2104,15 +2175,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2326,8 +2399,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2338,15 +2413,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2464,8 +2541,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2476,15 +2555,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2628,23 +2709,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2843,23 +2928,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_common.md b/slate/source/includes/cds_common.md
index 3d7421c5..e383a214 100644
--- a/slate/source/includes/cds_common.md
+++ b/slate/source/includes/cds_common.md
@@ -19,8 +19,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31,15 +33,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -167,8 +171,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -179,15 +185,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer/detail',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer/detail',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -398,23 +406,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/status',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -490,23 +502,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/outages',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/outages',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_dcr.md b/slate/source/includes/cds_dcr.md
index 327baf73..43f36d01 100644
--- a/slate/source/includes/cds_dcr.md
+++ b/slate/source/includes/cds_dcr.md
@@ -14,22 +14,26 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json'
};
-$.ajax({
- url: 'https://data.holder.com.au/register',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -129,22 +133,26 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'get',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -252,23 +260,27 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'put',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -379,21 +391,25 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'delete',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'DELETE',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_energy.md b/slate/source/includes/cds_energy.md
index 130ef552..a49db63f 100644
--- a/slate/source/includes/cds_energy.md
+++ b/slate/source/includes/cds_energy.md
@@ -15,23 +15,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans',
- method: 'get',
+fetch('/energy/plans',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -169,23 +173,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans/{planId}',
- method: 'get',
+fetch('/energy/plans/{planId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -773,8 +781,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -785,15 +795,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints',
- method: 'get',
+fetch('/energy/electricity/servicepoints',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -905,8 +917,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -917,15 +931,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1100,8 +1116,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1112,15 +1130,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1261,8 +1281,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1273,15 +1295,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1420,8 +1444,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1433,15 +1466,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1596,8 +1631,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1608,15 +1645,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1753,8 +1792,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1765,15 +1806,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1923,8 +1966,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1936,15 +1988,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2110,8 +2164,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2122,15 +2178,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts',
- method: 'get',
+fetch('/energy/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2259,8 +2317,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2271,15 +2331,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}',
- method: 'get',
+fetch('/energy/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2753,8 +2815,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2765,15 +2829,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('/energy/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2894,8 +2960,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2906,15 +2974,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/concessions',
- method: 'get',
+fetch('/energy/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3018,8 +3088,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3030,15 +3102,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/balance',
- method: 'get',
+fetch('/energy/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3127,8 +3201,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3139,15 +3215,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'get',
+fetch('/energy/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3250,8 +3328,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3263,15 +3350,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3390,8 +3479,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3402,15 +3493,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/invoices',
- method: 'get',
+fetch('/energy/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3568,8 +3661,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3580,15 +3675,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'get',
+fetch('/energy/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3744,8 +3841,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3757,15 +3863,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3937,8 +4045,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3949,15 +4059,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/billing',
- method: 'get',
+fetch('/energy/accounts/{accountId}/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -4146,8 +4258,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4158,15 +4272,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'get',
+fetch('/energy/accounts/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -4353,8 +4469,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -4366,15 +4491,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/billing',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_energy_sdh.md b/slate/source/includes/cds_energy_sdh.md
index ad9c2557..0ae55e77 100644
--- a/slate/source/includes/cds_energy_sdh.md
+++ b/slate/source/includes/cds_energy_sdh.md
@@ -18,8 +18,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -29,15 +38,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -161,8 +172,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -171,15 +184,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -349,8 +364,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -359,15 +376,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -504,8 +523,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -515,15 +543,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -673,8 +703,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -683,15 +715,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -824,8 +858,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -835,15 +878,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_register.md b/slate/source/includes/cds_register.md
index c1179ba5..d798b948 100644
--- a/slate/source/includes/cds_register.md
+++ b/slate/source/includes/cds_register.md
@@ -13,21 +13,25 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https:///idp/.well-known/openid-configuration',
- method: 'get',
+fetch('https:///idp/.well-known/openid-configuration',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -108,21 +112,25 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https:///cdr-register/v1/jwks',
- method: 'get',
+fetch('https:///cdr-register/v1/jwks',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -187,8 +195,10 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-v':'1',
@@ -196,15 +206,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/brands',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/brands',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -341,8 +353,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -350,15 +364,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/brands/summary',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/brands/summary',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -459,8 +475,10 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -468,15 +486,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -563,8 +583,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -572,15 +594,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -670,8 +694,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -679,15 +705,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -779,8 +807,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -788,15 +818,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -888,8 +920,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'2',
'x-min-v':'string',
@@ -897,15 +931,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/cds_telco.md b/slate/source/includes/cds_telco.md
index 300b7de2..fbff6e20 100644
--- a/slate/source/includes/cds_telco.md
+++ b/slate/source/includes/cds_telco.md
@@ -15,23 +15,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -174,23 +178,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -365,8 +373,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -377,15 +387,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -525,8 +537,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -537,15 +551,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -696,8 +712,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "serviceIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -709,15 +734,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -882,8 +909,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -894,15 +923,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1036,8 +1067,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1048,15 +1081,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1179,8 +1214,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1191,15 +1228,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1327,8 +1366,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1339,15 +1380,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1458,8 +1501,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1470,15 +1515,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1627,8 +1674,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1639,15 +1688,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1812,8 +1863,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1825,15 +1885,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2014,8 +2076,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2026,15 +2090,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2202,8 +2268,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2214,15 +2282,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2399,8 +2469,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2412,15 +2491,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2613,8 +2694,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2625,15 +2708,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2781,8 +2866,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2793,15 +2880,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2947,8 +3036,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2960,15 +3058,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/slate/source/includes/releasenotes/releasenotes.1.26.0.html.md b/slate/source/includes/releasenotes/releasenotes.1.26.0.html.md
index 513c0958..e2da1569 100644
--- a/slate/source/includes/releasenotes/releasenotes.1.26.0.html.md
+++ b/slate/source/includes/releasenotes/releasenotes.1.26.0.html.md
@@ -22,6 +22,7 @@ This release addresses the following minor defects raised on [Standards Staging]
- [Staging Issue 270 - Get Accounts V1 link in FDO](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/270)
- [Staging Issue 268 - Remove character in aud description](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/268)
- [Staging Issue 256 - Typos in archived Register API versions](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/256)
+- [Staging Issue 237 - Review whether Code samples are useful](https://github.com/ConsumerDataStandardsAustralia/standards-staging/issues/237)
This release addresses the following change requests raised on [Standards Maintenance](https://github.com/ConsumerDataStandardsAustralia/standards-maintenance/issues):
@@ -47,6 +48,7 @@ No Change
|Change|Description|Link|
|------|-----------|----|
+| Updated Code Samples | Modified the non-normative javascript code samples for endpoints to represent calling the endpoints server side rather than from browser | All Endpoints |
| Modified Get Metrics Obligations | Changes to the obligation dates for Get Metrics v3 as determined in [Decision 322](https://github.com/ConsumerDataStandardsAustralia/standards/issues/322) | [Admin APIs](../../#admin-apis) |
| bundleName Typo | Typo in bundleName field description | [BankingAccountDetailV3](../../#tocSbankingaccountdetailv3) |
| minAmount/maxAmout Typos | Typo in description of minAmount and maxAmount query parameters descriptions for Get Transactions For Account endpoint| [Get Transactions For Account](../../#get-transactions-for-account) |
diff --git a/swagger-gen/cds_admin.md b/swagger-gen/cds_admin.md
index adf6ae4a..c0b6c67c 100644
--- a/swagger-gen/cds_admin.md
+++ b/swagger-gen/cds_admin.md
@@ -16,8 +16,15 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "action": "REFRESH"
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -25,15 +32,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/register/metadata',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/admin/register/metadata',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -119,23 +128,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/admin/metrics',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/admin/metrics',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_banking.md b/swagger-gen/cds_banking.md
index 8235ac98..238bb017 100644
--- a/swagger-gen/cds_banking.md
+++ b/swagger-gen/cds_banking.md
@@ -19,8 +19,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31,15 +33,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -174,8 +178,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -186,15 +192,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -330,8 +338,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -343,15 +360,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -477,8 +496,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -489,15 +510,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -597,8 +620,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -609,15 +634,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -898,8 +925,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -910,15 +939,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1054,8 +1085,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1066,15 +1099,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/transactions/{transactionId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1192,8 +1227,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1204,15 +1241,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1325,8 +1364,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1337,15 +1378,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1479,8 +1522,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1492,15 +1544,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/direct-debits',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1624,8 +1678,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1636,15 +1692,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/accounts/{accountId}/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1847,8 +1905,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1859,15 +1919,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2091,8 +2153,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2104,15 +2175,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/banking/payments/scheduled',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2326,8 +2399,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2338,15 +2413,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2464,8 +2541,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2476,15 +2555,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/payees/{payeeId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2628,23 +2709,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2843,23 +2928,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/banking/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_common.md b/swagger-gen/cds_common.md
index 3d7421c5..e383a214 100644
--- a/swagger-gen/cds_common.md
+++ b/swagger-gen/cds_common.md
@@ -19,8 +19,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -31,15 +33,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -167,8 +171,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -179,15 +185,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/common/customer/detail',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/common/customer/detail',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -398,23 +406,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/status',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -490,23 +502,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/discovery/outages',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/discovery/outages',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_dcr.md b/swagger-gen/cds_dcr.md
index 327baf73..43f36d01 100644
--- a/swagger-gen/cds_dcr.md
+++ b/swagger-gen/cds_dcr.md
@@ -14,22 +14,26 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json'
};
-$.ajax({
- url: 'https://data.holder.com.au/register',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -129,22 +133,26 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'get',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -252,23 +260,27 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...';
+const headers = {
'Content-Type':'application/jwt',
'Accept':'application/json',
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'put',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'PUT',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -379,21 +391,25 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Authorization':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/register/{ClientId}',
- method: 'delete',
+fetch('https://data.holder.com.au/register/{ClientId}',
+{
+ method: 'DELETE',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_energy.md b/swagger-gen/cds_energy.md
index 130ef552..a49db63f 100644
--- a/swagger-gen/cds_energy.md
+++ b/swagger-gen/cds_energy.md
@@ -15,23 +15,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans',
- method: 'get',
+fetch('/energy/plans',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -169,23 +173,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: '/energy/plans/{planId}',
- method: 'get',
+fetch('/energy/plans/{planId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -773,8 +781,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -785,15 +795,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints',
- method: 'get',
+fetch('/energy/electricity/servicepoints',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -905,8 +917,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -917,15 +931,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1100,8 +1116,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1112,15 +1130,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1261,8 +1281,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1273,15 +1295,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'get',
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1420,8 +1444,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1433,15 +1466,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1596,8 +1631,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1608,15 +1645,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1753,8 +1792,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1765,15 +1806,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'get',
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1923,8 +1966,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1936,15 +1988,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2110,8 +2164,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2122,15 +2178,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts',
- method: 'get',
+fetch('/energy/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2259,8 +2317,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2271,15 +2331,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}',
- method: 'get',
+fetch('/energy/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2753,8 +2815,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2765,15 +2829,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('/energy/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2894,8 +2960,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2906,15 +2974,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/concessions',
- method: 'get',
+fetch('/energy/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3018,8 +3088,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3030,15 +3102,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/balance',
- method: 'get',
+fetch('/energy/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3127,8 +3201,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3139,15 +3215,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'get',
+fetch('/energy/accounts/balances',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3250,8 +3328,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3263,15 +3350,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/balances',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/balances',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3390,8 +3479,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3402,15 +3493,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/invoices',
- method: 'get',
+fetch('/energy/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3568,8 +3661,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3580,15 +3675,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'get',
+fetch('/energy/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3744,8 +3841,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -3757,15 +3863,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -3937,8 +4045,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -3949,15 +4059,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/{accountId}/billing',
- method: 'get',
+fetch('/energy/accounts/{accountId}/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -4146,8 +4258,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -4158,15 +4272,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'get',
+fetch('/energy/accounts/billing',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -4353,8 +4469,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -4366,15 +4491,17 @@ var headers = {
};
-$.ajax({
- url: '/energy/accounts/billing',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/energy/accounts/billing',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_energy_sdh.md b/swagger-gen/cds_energy_sdh.md
index ad9c2557..0ae55e77 100644
--- a/swagger-gen/cds_energy_sdh.md
+++ b/swagger-gen/cds_energy_sdh.md
@@ -18,8 +18,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -29,15 +38,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -161,8 +172,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -171,15 +184,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -349,8 +364,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -359,15 +376,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -504,8 +523,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -515,15 +543,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -673,8 +703,10 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -683,15 +715,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/{servicePointId}/der',
- method: 'get',
+fetch('/secondary/energy/electricity/servicepoints/{servicePointId}/der',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -824,8 +858,17 @@ x-cds-arrangement: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "servicePointIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -835,15 +878,17 @@ var headers = {
};
-$.ajax({
- url: '/secondary/energy/electricity/servicepoints/der',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('/secondary/energy/electricity/servicepoints/der',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_register.md b/swagger-gen/cds_register.md
index c1179ba5..d798b948 100644
--- a/swagger-gen/cds_register.md
+++ b/swagger-gen/cds_register.md
@@ -13,21 +13,25 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https:///idp/.well-known/openid-configuration',
- method: 'get',
+fetch('https:///idp/.well-known/openid-configuration',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -108,21 +112,25 @@ Accept: application/json
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json'
};
-$.ajax({
- url: 'https:///cdr-register/v1/jwks',
- method: 'get',
+fetch('https:///cdr-register/v1/jwks',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -187,8 +195,10 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'Authorization':'string',
'x-v':'1',
@@ -196,15 +206,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/brands',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/brands',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -341,8 +353,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -350,15 +364,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/brands/summary',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/brands/summary',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -459,8 +475,10 @@ Authorization: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -468,15 +486,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/brands/{dataRecipientBrandId}/software-products/{softwareProductId}/ssa',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -563,8 +583,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -572,15 +594,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-holders/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-holders/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -670,8 +694,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -679,15 +705,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/brands/software-products/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -779,8 +807,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'1',
'x-min-v':'string',
@@ -788,15 +818,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients/status',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients/status',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -888,8 +920,10 @@ If-None-Match: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'2',
'x-min-v':'string',
@@ -897,15 +931,17 @@ var headers = {
};
-$.ajax({
- url: 'https:///cdr-register/v1/{industry}/data-recipients',
- method: 'get',
+fetch('https:///cdr-register/v1/{industry}/data-recipients',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/cds_telco.md b/swagger-gen/cds_telco.md
index 300b7de2..fbff6e20 100644
--- a/swagger-gen/cds_telco.md
+++ b/swagger-gen/cds_telco.md
@@ -15,23 +15,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -174,23 +178,27 @@ x-min-v: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string'
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/products/{productId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -365,8 +373,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -377,15 +387,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{serviceId}/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -525,8 +537,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -537,15 +551,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -696,8 +712,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "serviceIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -709,15 +734,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/usage',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -882,8 +909,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -894,15 +923,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1036,8 +1067,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1048,15 +1081,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1179,8 +1214,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1191,15 +1228,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/payment-schedule',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1327,8 +1366,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1339,15 +1380,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/concessions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1458,8 +1501,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1470,15 +1515,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1627,8 +1674,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -1639,15 +1688,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -1812,8 +1863,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -1825,15 +1885,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/balance',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2014,8 +2076,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2026,15 +2090,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2202,8 +2268,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2214,15 +2282,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2399,8 +2469,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2412,15 +2491,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/invoices',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2613,8 +2694,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2625,15 +2708,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/{accountId}/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2781,8 +2866,10 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+
+const headers = {
'Accept':'application/json',
'x-v':'string',
'x-min-v':'string',
@@ -2793,15 +2880,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'get',
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'GET',
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
@@ -2947,8 +3036,17 @@ x-cds-client-headers: string
```
-```javascript
-var headers = {
+```javascript--nodejs
+const fetch = require('node-fetch');
+const inputBody = '{
+ "data": {
+ "accountIds": [
+ "string"
+ ]
+ },
+ "meta": {}
+}';
+const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'x-v':'string',
@@ -2960,15 +3058,17 @@ var headers = {
};
-$.ajax({
- url: 'https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
- method: 'post',
-
- headers: headers,
- success: function(data) {
- console.log(JSON.stringify(data));
- }
+fetch('https://data.holder.com.au/cds-au/v1/telco/accounts/transactions',
+{
+ method: 'POST',
+ body: inputBody,
+ headers: headers
})
+.then(function(res) {
+ return res.json();
+}).then(function(body) {
+ console.log(body);
+});
```
diff --git a/swagger-gen/create_markdown.sh b/swagger-gen/create_markdown.sh
index 118bf1c9..d5f51f63 100755
--- a/swagger-gen/create_markdown.sh
+++ b/swagger-gen/create_markdown.sh
@@ -8,7 +8,7 @@ echo "Starting create_markdown..." > create-markdown-log.txt
echo "*** Generate cds_banking.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_banking.json -o cds_banking.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_banking.json -o cds_banking.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_banking.md ../slate/source/includes/cds_banking.md > diff_banking.txt
@@ -16,28 +16,28 @@ diff -w cds_banking.md ../slate/source/includes/cds_banking.md > diff_banking.tx
echo "*** Generate cds_energy.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_energy.json -o cds_energy.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_energy.json -o cds_energy.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_energy.md ../slate/source/includes/cds_energy.md > diff_energy.txt
echo "*** Generate cds_energy_sdh.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_energy_sdh.json -o cds_energy_sdh.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_energy_sdh.json -o cds_energy_sdh.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_energy_sdh.md ../slate/source/includes/cds_energy_sdh.md > diff_energy_sdh.txt
echo "*** Generate cds_telco.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_telco.json -o cds_telco.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_telco.json -o cds_telco.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_telco.md ../slate/source/includes/cds_telco.md > diff_telco.txt
echo "*** Generate cds_common.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_common.json -o cds_common.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_common.json -o cds_common.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_common.md ../slate/source/includes/cds_common.md > diff_common.txt
@@ -45,7 +45,7 @@ diff -w cds_common.md ../slate/source/includes/cds_common.md > diff_common.txt
echo "*** Generate cds_admin.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_admin.json -o cds_admin.md
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_admin.json -o cds_admin.md
} >> create-markdown-log.txt 2>&1
echo "*** Removing redundant Admin header"
@@ -58,7 +58,7 @@ diff -w cds_admin.md ../slate/source/includes/cds_admin.md > diff_admin.txt
echo "*** Generate cds_register.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_register.json -o cds_register.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_register.json -o cds_register.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_register.md ../slate/source/includes/cds_register.md > diff_register.txt
@@ -66,7 +66,7 @@ diff -w cds_register.md ../slate/source/includes/cds_register.md > diff_register
echo "*** Generate cds_dcr.md"
{
- node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript:Javascript' --summary api/cds_dcr.json -o cds_dcr.md >> create-markdown-log.txt
+ node ./widdershins-cdr/widdershins.js --environment ./widdershins-cdr/cdr_widdershins.json --search false --language_tabs 'http:HTTP' 'javascript--nodejs:Javascript' --summary api/cds_dcr.json -o cds_dcr.md >> create-markdown-log.txt
} >> create-markdown-log.txt 2>&1
diff -w cds_dcr.md ../slate/source/includes/cds_dcr.md > diff_dcr.txt
From 541ca3243edd0eb1a9fc41440e37e7c3f1e92833 Mon Sep 17 00:00:00 2001
From: James Bligh
Date: Wed, 23 Aug 2023 17:25:47 +1000
Subject: [PATCH 13/47] Rebuild
---
...230823-32398-a9bva7 => additional20230823-32943-14g7dkt} | 0
docs/includes/releasenotes/releasenotes.1.26.0.html | 6 ++++++
2 files changed, 6 insertions(+)
rename docs/includes/additional/{additional20230823-32398-a9bva7 => additional20230823-32943-14g7dkt} (100%)
diff --git a/docs/includes/additional/additional20230823-32398-a9bva7 b/docs/includes/additional/additional20230823-32943-14g7dkt
similarity index 100%
rename from docs/includes/additional/additional20230823-32398-a9bva7
rename to docs/includes/additional/additional20230823-32943-14g7dkt
diff --git a/docs/includes/releasenotes/releasenotes.1.26.0.html b/docs/includes/releasenotes/releasenotes.1.26.0.html
index 90710cb6..f9081f70 100644
--- a/docs/includes/releasenotes/releasenotes.1.26.0.html
+++ b/docs/includes/releasenotes/releasenotes.1.26.0.html
@@ -262,6 +262,7 @@ Changes Made
Change Requests<
Staging Issue 270 - Get Accounts V1 link in FDO
Staging Issue 268 - Remove character in aud description
Staging Issue 256 - Typos in archived Register API versions
+Staging Issue 237 - Review whether Code samples are useful
This release addresses the following change requests raised on Standards Maintenance:
@@ -300,6 +301,11 @@ API End Points