smartAPI editor is an extentetion to Swagger editor. This guideline helps the developers find the right place in the code to modify.
❗ Make sure you are in swagger-editor directory; and have run npm install.
The JSON schema, the editor uses to validate the API document:
node_modules/swagger-schema-official/schema.json
scripts/services/KeywordMap.js
scripts/ace/swagger.snippet.js
scripts/services/autocomplete.js
node_modules/brace/ext/language_tools.js
scripts/services/autocomplete.js
scripts/directives/compile-template.js
HTML templates for rendering
templates/
scripts/controllers/
Collapsable div on top of preview panel
templates/recom-presenter.html
scripts/controllers/recompresenter.js
styles/components/error-presenter.less
Collapsable red div on top of preview panel that shows up if error occurs
templates/error-presenter.html
scripts/controllers/errorpresenter.js
styles/components/error-presenter.less
For Auto-suggestion service URL, look for suggestionServiceBasePath
templates/preferences.html
scripts/controllers/preferences.js
configs/defaults.js
Look for saveAPIdoc function
views/header/header.html
scripts/controllers/header.js
spec-files/guide.yaml
spec-files/default.yaml
spec-files/xxx.yaml
package.json