diff --git a/Editor-Runtime-API.md b/Editor-Runtime-API.md index 5607a4a..d3ddd85 100644 --- a/Editor-Runtime-API.md +++ b/Editor-Runtime-API.md @@ -83,21 +83,19 @@ All URLs are relative to `settings.httpAdminRoot`, which defaults to `/`. |--------------------------------------------|----------------------------------------------------------| | WebSocket /comms | | - -| | | | | | | | -|------------------------------|-------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| api/admin/flow.js | `GET /flow/:id`
`POST /flow`
`DELETE /flow/:id`
`PUT /flow/:id` | runtime.log.audit
runtime.nodes.getFlow(id)
runtime.nodes.addFlow(flow)
runtime.nodes.updateFlow(id,flow)
runtime.nodes.removeFlow(id) | | | | | -| api/admin/flows.js | `GET /flows`
`POST /flows` | runtime.log.audit
runtime.log.warn
runtime.nodes.loadFlows
runtime.nodes.getFlows
runtime.nodes.setFlows | | | | | -| api/admin/nodes.js | `GET /nodes`
`POST /nodes`
`GET /\/nodes\/((@[^\/]+\/)?[^\/]+)$/` | runtime.nodes.enableNode
PUT /\/nodes\/((@[^\/]+\/)?[^\/]+)$/ | runtime.nodes.getModuleInfo
DELETE /\/nodes\/((@[^\/]+\/)?[^\/]+)$/ | runtime.nodes.getNodeConfig
GET /\/nodes\/((@[^\/]+\/)?[^\/]+)\/([^\/]+)$/ | runtime.nodes.getNodeConfigs
PUT /\/nodes\/((@[^\/]+\/)?[^\/]+)\/([^\/]+)$/ | runtime.nodes.getNodeIcons
runtime.log.audit
runtime.nodes.disableNode
runtime.nodes.getNodeInfo
runtime.nodes.getNodeList
runtime.nodes.installModule
runtime.nodes.uninstallModule | -| api/editor/comms.js | WS /comms | runtime.log.audit
runtime.log.trace
runtime.log.warn
runtime.settings.adminAuth
runtime.settings.disableEditor
runtime.settings.httpAdminRoot
runtime.settings.webSocketKeepAliveTime
runtime.events.on
runtime.events.removeListener | | | | | -| api/editor/credentials.js | GET /credentials/:type/:id | runtime.log.audit
runtime.nodes.getCredentials
runtime.nodes.getCredentialDefinition | | | | | -| api/editor/index.js | | runtime.isStarted
runtime.i18n.registerMessageCatalogs
runtime.log.error | | | | | -| api/editor/library.js | POST /library/flows\/.*/
GET /library/flows\/.*/
GET /library/flows | runtime.log.audit
runtime.log.warn
runtime.nodes.getNodeExampleFlows
runtime.nodes.getNodeExampleFlowPath
runtime.storage.getLibraryEntry
runtime.storage.saveLibraryEntry
runtime.storage.getAllFlows
runtime.storage.getFlow
runtime.storage.saveFlow | | | | | -| api/editor/locales.js | GET /locales/nodes
GET /locales\/(.+)\/?$/ | runtime.nodes.getNodeList
runtime.i18n.i
runtime.i18n.catalog | | | | | -| api/editor/projects/index.js | | runtime.storage.projects.abortMerge
runtime.storage.projects.addRemote
runtime.storage.projects.commit
runtime.storage.projects.createProject
runtime.storage.projects.deleteBranch
runtime.storage.projects.deleteProject
runtime.storage.projects.getBranchStatus
runtime.storage.projects.getBranches
runtime.storage.projects.getBranches
runtime.storage.projects.getCommit
runtime.storage.projects.getCommits
runtime.storage.projects.getFile
runtime.storage.projects.getFileDiff
runtime.storage.projects.getFiles
runtime.storage.projects.getProject
runtime.storage.projects.getRemotes
runtime.storage.projects.getStatus
runtime.storage.projects.initialiseProject
runtime.storage.projects.listProjects
runtime.storage.projects.pull
runtime.storage.projects.push
runtime.storage.projects.removeRemote
runtime.storage.projects.resolveMerge
runtime.storage.projects.revertFile
runtime.storage.projects.setActiveProject
runtime.storage.projects.setBranch
runtime.storage.projects.stageFile
runtime.storage.projects.stageFile
runtime.storage.projects.unstageFile
runtime.storage.projects.unstageFile
runtime.storage.projects.updateProject
runtime.storage.projects.updateRemote | | | | | -| api/editor/settings.js | GET /settings
GET /settings/user
POST /settings/user | runtime.log.audit
runtime.nodes.getCredentialKeyType
runtime.nodes.paletteEditorEnabled
runtime.storage.projects.getActiveProject
runtime.storage.projects.flowFileExists
runtime.storage.projects.getFlowFilename
runtime.storage.projects.getCredentialsFilename
runtime.storage.projects.getGlobalGitUser
runtime.settings.httpNodeRoot
runtime.settings.paletteCategories
runtime.settings.flowFilePretty
runtime.settings.getUserSettings
runtime.settings.setUserSettings | api/editor/sshkeys.js | GET /settings/user/keys
POST /settings/user/keys
GET /settings/user/keys/:id
DELETE /settings/user/keys/:id | runtime.storage.projects.ssh.listSSHKeys
runtime.storage.projects.ssh.getSSHKey
runtime.storage.projects.ssh.generateSSHKey
runtime.storage.projects.ssh.deleteSSHKey | | -| | | | | | | | -| api/editor/theme.js | GET /theme/* | runtime.version
runtime.settings.editorTheme | | | | | -| api/editor/ui.js | GET /
GET /[public resources]
GET /icons
GET /icons/:module/:icon
GET /icons/:scope/:module/:icon | runtime.nodes.getNodeIconPath | | | | | -| api/auth/index.js | GET /auth/login
POST /auth/token
POST /auth/revoke | api/auth/strategies.js
runtime.settings.adminAuth
runtime.settings.httpAdminRoot
runtime.settings.editorTheme
runtime.log.audit | | | | | -| api/auth/tokens.js | | runtime.storage.getSessions
runtime.storage.saveSessions | | | | | +| | | | | | | +|------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| api/admin/flow.js | `GET /flow/:id`
`POST /flow`
`DELETE /flow/:id`
`PUT /flow/:id` | "runtime.log.audit
runtime.nodes.getFlow(id)
runtime.nodes.addFlow(flow)
runtime.nodes.updateFlow(id,flow)
runtime.nodes.removeFlow(id)" | | | | +| api/admin/flows.js | `GET /flows`
`POST /flows` | runtime.log.audit
runtime.log.warn
runtime.nodes.loadFlows
runtime.nodes.getFlows
runtime.nodes.setFlows | | | | +| api/admin/nodes.js | `GET /nodes`
`POST /nodes`
`GET /\/nodes\/((@[^\/]+\/)?[^\/]+)$/`
`PUT /\/nodes\/((@[^\/]+\/)?[^\/]+)$/`
`DELETE /\/nodes\/((@[^\/]+\/)?[^\/]+)$/`
`GET /\/nodes\/((@[^\/]+\/)?[^\/]+)\/([^\/]+)$/`
`PUT /\/nodes\/((@[^\/]+\/)?[^\/]+)\/([^\/]+)$/` | runtime.nodes.enableNode
runtime.nodes.getModuleInfo
runtime.nodes.getNodeConfig
runtime.nodes.getNodeConfigs
runtime.nodes.getNodeIcons
runtime.log.audit
runtime.nodes.disableNode
runtime.nodes.getNodeInfo
runtime.nodes.getNodeList
runtime.nodes.installModule
runtime.nodes.uninstallModule | | | | +| api/editor/comms.js | `WS /comms` | runtime.log.audit
runtime.log.trace
runtime.log.warn
runtime.settings.adminAuth
runtime.settings.disableEditor
runtime.settings.httpAdminRoot
runtime.settings.webSocketKeepAliveTime
runtime.events.on
runtime.events.removeListener | | | | +| api/editor/credentials.js | `GET /credentials/:type/:id` | runtime.log.audit
runtime.nodes.getCredentials
runtime.nodes.getCredentialDefinition | | | | +| api/editor/index.js | | runtime.isStarted
runtime.i18n.registerMessageCatalogs
runtime.log.error | | | | +| api/editor/library.js | `POST /library/flows\/.*/`
`GET /library/flows\/.*/`
`GET /library/flows` | runtime.log.audit
runtime.log.warn
runtime.nodes.getNodeExampleFlows
runtime.nodes.getNodeExampleFlowPath
runtime.storage.getLibraryEntry
runtime.storage.saveLibraryEntry
runtime.storage.getAllFlows
runtime.storage.getFlow
runtime.storage.saveFlow | | | | +| api/editor/locales.js | `GET /locales/nodes`
`GET /locales\/(.+)\/?$/` | runtime.nodes.getNodeList
runtime.i18n.i
runtime.i18n.catalog | | | | +| api/editor/projects/index.js | `* /projects/*` | runtime.storage.projects.abortMerge
runtime.storage.projects.addRemote
runtime.storage.projects.commit
runtime.storage.projects.createProject
runtime.storage.projects.deleteBranch
runtime.storage.projects.deleteProject
runtime.storage.projects.getBranchStatus
runtime.storage.projects.getBranches
runtime.storage.projects.getBranches
runtime.storage.projects.getCommit
runtime.storage.projects.getCommits
runtime.storage.projects.getFile
runtime.storage.projects.getFileDiff
runtime.storage.projects.getFiles
runtime.storage.projects.getProject
runtime.storage.projects.getRemotes
runtime.storage.projects.getStatus
runtime.storage.projects.initialiseProject
runtime.storage.projects.listProjects
runtime.storage.projects.pull
runtime.storage.projects.push
runtime.storage.projects.removeRemote
runtime.storage.projects.resolveMerge
runtime.storage.projects.revertFile
runtime.storage.projects.setActiveProject
runtime.storage.projects.setBranch
runtime.storage.projects.stageFile
runtime.storage.projects.stageFile
runtime.storage.projects.unstageFile
runtime.storage.projects.unstageFile
runtime.storage.projects.updateProject
runtime.storage.projects.updateRemote | | | | +| api/editor/settings.js | `GET /settings`
`GET /settings/user`
`POST /settings/user` | runtime.log.audit
runtime.nodes.getCredentialKeyType
runtime.nodes.paletteEditorEnabled
runtime.storage.projects.getActiveProject
runtime.storage.projects.flowFileExists
runtime.storage.projects.getFlowFilename
runtime.storage.projects.getCredentialsFilename
runtime.storage.projects.getGlobalGitUser
runtime.settings.httpNodeRoot
runtime.settings.paletteCategories
runtime.settings.flowFilePretty
runtime.settings.getUserSettings
runtime.settings.setUserSettings | api/editor/sshkeys.js | `GET /settings/user/keys`
`POST /settings/user/keys`
`GET /settings/user/keys/:id`
`DELETE /settings/user/keys/:id` | runtime.storage.projects.ssh.listSSHKeys
runtime.storage.projects.ssh.getSSHKey
runtime.storage.projects.ssh.generateSSHKey
runtime.storage.projects.ssh.deleteSSHKey | +| api/editor/theme.js | `GET /theme/*` | runtime.version
runtime.settings.editorTheme | | | | +| api/editor/ui.js | `GET /`
`GET /[public resources]`
GET /icons
GET /icons/:module/:icon
GET /icons/:scope/:module/:icon | runtime.nodes.getNodeIconPath | | | | +| api/auth/index.js | `GET /auth/login`
`POST /auth/token`
`POST /auth/revoke` | api/auth/strategies.js
runtime.settings.adminAuth
runtime.settings.httpAdminRoot
runtime.settings.editorTheme
runtime.log.audit | | | | +| api/auth/tokens.js | | runtime.storage.getSessions
runtime.storage.saveSessions | | | |