From 5c83ab72a58a320e43e6e0f40a1318e35daa2502 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Wed, 18 Sep 2019 15:44:54 +0200 Subject: [PATCH 1/6] Update API documentation URLs --- src/commands/addons/config.js | 4 ++-- src/commands/addons/create.js | 2 +- src/commands/addons/delete.js | 2 +- src/commands/addons/list.js | 2 +- src/commands/api.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/addons/config.js b/src/commands/addons/config.js index 31e21b2b032..87f9736e4ef 100644 --- a/src/commands/addons/config.js +++ b/src/commands/addons/config.js @@ -39,7 +39,7 @@ class AddonsConfigCommand extends Command { return false } - // TODO update getAddonManifest to https://open-api.netlify.com/#/default/showServiceManifest + // TODO update getAddonManifest to https://open-api.netlify.com/#/operation/showServiceManifest const manifest = await getAddonManifest(addonName, accessToken) const hasConfig = manifest.config && Object.keys(manifest.config).length // Parse flags @@ -186,7 +186,7 @@ async function update({ addonName, currentConfig, newConfig, settings, accessTok let updateAddonResponse try { - // TODO update updateAddon to https://open-api.netlify.com/#/default/updateServiceInstance + // TODO update updateAddon to https://open-api.netlify.com/#/operation/updateServiceInstance updateAddonResponse = await updateAddon(settings, accessToken) } catch (e) { error(e.message) diff --git a/src/commands/addons/create.js b/src/commands/addons/create.js index 00dfbb1758b..a0ed623b38b 100644 --- a/src/commands/addons/create.js +++ b/src/commands/addons/create.js @@ -155,7 +155,7 @@ class AddonsCreateCommand extends Command { async function createSiteAddon({ addonName, settings, accessToken, siteData, error }, logger) { let addonResponse try { - // TODO update to https://open-api.netlify.com/#/default/createServiceInstance + // TODO update to https://open-api.netlify.com/#/operation/createServiceInstance addonResponse = await createAddon(settings, accessToken) } catch (e) { error(e.message) diff --git a/src/commands/addons/delete.js b/src/commands/addons/delete.js index 4f60d0c1351..e4346c78500 100644 --- a/src/commands/addons/delete.js +++ b/src/commands/addons/delete.js @@ -63,7 +63,7 @@ class AddonsDeleteCommand extends Command { } let addonResponse try { - // TODO update deleteAddon to https://open-api.netlify.com/#/default/deleteServiceInstance + // TODO update deleteAddon to https://open-api.netlify.com/#/operation/deleteServiceInstance addonResponse = await deleteAddon(settings, accessToken) } catch (e) { this.error(e.message) diff --git a/src/commands/addons/list.js b/src/commands/addons/list.js index d401b6e0b80..312765045db 100644 --- a/src/commands/addons/list.js +++ b/src/commands/addons/list.js @@ -17,7 +17,7 @@ class AddonsListCommand extends Command { const siteData = await api.getSite({ siteId }) - // TODO update getAddons to https://open-api.netlify.com/#/default/getServices + // TODO update getAddons to https://open-api.netlify.com/#/operation/getServices const addons = await getAddons(siteId, accessToken) // Return json response for piping commands diff --git a/src/commands/api.js b/src/commands/api.js index a69cbbd6bee..a2ff311217c 100644 --- a/src/commands/api.js +++ b/src/commands/api.js @@ -24,7 +24,7 @@ class APICommand extends Command { table.setHeading('API Method', 'Docs Link') methods.forEach(method => { const { operationId } = method - table.addRow(operationId, `https://open-api.netlify.com/#/default/${operationId}`) + table.addRow(operationId, `https://open-api.netlify.com/#/operation/${operationId}`) }) this.log(table.toString()) this.log() From f132ec5e369db60f2c6905b5eaa973a6ae5fb7cd Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 20 Sep 2019 17:57:36 +0200 Subject: [PATCH 2/6] Update src/commands/addons/config.js Co-Authored-By: Jessica Parsons --- src/commands/addons/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addons/config.js b/src/commands/addons/config.js index 87f9736e4ef..9e162f416e8 100644 --- a/src/commands/addons/config.js +++ b/src/commands/addons/config.js @@ -39,7 +39,7 @@ class AddonsConfigCommand extends Command { return false } - // TODO update getAddonManifest to https://open-api.netlify.com/#/operation/showServiceManifest + // TODO update getAddonManifest to https://open-api.netlify.com/#operation/showServiceManifest const manifest = await getAddonManifest(addonName, accessToken) const hasConfig = manifest.config && Object.keys(manifest.config).length // Parse flags From 3bdb4d7dc685b3836ec4327406fd3a6f3bcf0c19 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 20 Sep 2019 17:57:42 +0200 Subject: [PATCH 3/6] Update src/commands/addons/config.js Co-Authored-By: Jessica Parsons --- src/commands/addons/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addons/config.js b/src/commands/addons/config.js index 9e162f416e8..a712876f8df 100644 --- a/src/commands/addons/config.js +++ b/src/commands/addons/config.js @@ -186,7 +186,7 @@ async function update({ addonName, currentConfig, newConfig, settings, accessTok let updateAddonResponse try { - // TODO update updateAddon to https://open-api.netlify.com/#/operation/updateServiceInstance + // TODO update updateAddon to https://open-api.netlify.com/#operation/updateServiceInstance updateAddonResponse = await updateAddon(settings, accessToken) } catch (e) { error(e.message) From 211b3c9a4ce84b25a8c4ed8f75cf47f3d238d32b Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 20 Sep 2019 17:57:47 +0200 Subject: [PATCH 4/6] Update src/commands/addons/create.js Co-Authored-By: Jessica Parsons --- src/commands/addons/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addons/create.js b/src/commands/addons/create.js index a0ed623b38b..b7dab799ba9 100644 --- a/src/commands/addons/create.js +++ b/src/commands/addons/create.js @@ -155,7 +155,7 @@ class AddonsCreateCommand extends Command { async function createSiteAddon({ addonName, settings, accessToken, siteData, error }, logger) { let addonResponse try { - // TODO update to https://open-api.netlify.com/#/operation/createServiceInstance + // TODO update to https://open-api.netlify.com/#operation/createServiceInstance addonResponse = await createAddon(settings, accessToken) } catch (e) { error(e.message) From 6f9f555d1b80e436ae77e26b153f2b73dcef8a0e Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 20 Sep 2019 17:57:53 +0200 Subject: [PATCH 5/6] Update src/commands/addons/delete.js Co-Authored-By: Jessica Parsons --- src/commands/addons/delete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addons/delete.js b/src/commands/addons/delete.js index e4346c78500..a7452a2ad7a 100644 --- a/src/commands/addons/delete.js +++ b/src/commands/addons/delete.js @@ -63,7 +63,7 @@ class AddonsDeleteCommand extends Command { } let addonResponse try { - // TODO update deleteAddon to https://open-api.netlify.com/#/operation/deleteServiceInstance + // TODO update deleteAddon to https://open-api.netlify.com/#operation/deleteServiceInstance addonResponse = await deleteAddon(settings, accessToken) } catch (e) { this.error(e.message) From 2a8498e163c8e9eb46b3f1b9ac16c1b708e01fec Mon Sep 17 00:00:00 2001 From: ehmicky Date: Fri, 20 Sep 2019 17:57:58 +0200 Subject: [PATCH 6/6] Update src/commands/addons/list.js Co-Authored-By: Jessica Parsons --- src/commands/addons/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addons/list.js b/src/commands/addons/list.js index 312765045db..4ad7be423ea 100644 --- a/src/commands/addons/list.js +++ b/src/commands/addons/list.js @@ -17,7 +17,7 @@ class AddonsListCommand extends Command { const siteData = await api.getSite({ siteId }) - // TODO update getAddons to https://open-api.netlify.com/#/operation/getServices + // TODO update getAddons to https://open-api.netlify.com/#operation/getServices const addons = await getAddons(siteId, accessToken) // Return json response for piping commands