Skip to content

Commit

Permalink
Update API documentation URLs (#546)
Browse files Browse the repository at this point in the history
Update API documentation URLs
  • Loading branch information
ehmicky authored Sep 20, 2019
2 parents 564046d + 2a8498e commit 9f5de03
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/commands/addons/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/addons/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/addons/delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/addons/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/commands/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9f5de03

Please sign in to comment.