Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API documentation URLs #546

Merged
merged 6 commits into from Sep 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/commands/addons/config.js
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
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
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
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
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