forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdefaults.js
More file actions
32 lines (30 loc) · 720 Bytes
/
defaults.js
File metadata and controls
32 lines (30 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Test defaults
*/
'use strict';
SwaggerEditor.config(function($provide) {
$provide.constant('defaults', {
disableCodeGen: true,
examplesFolder: 'spec-files/',
editorOptions: {},
exampleFiles: [
'default.yaml',
'heroku-pets.yaml',
'minimal.yaml',
'echo.yaml',
'petstore_simple.yaml',
'petstore_full.yaml',
'basic-auth.yaml',
'security.yaml'
],
autocompleteExtension: {},
useBackendForStorage: false,
backendEndpoint: '/editor/spec',
useYamlBackend: false,
disableFileMenu: false,
headerBranding: false,
enableTryIt: true,
brandingCssClass: '',
importProxyUrl: 'https://cors-it.herokuapp.com/?url='
});
});