forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.js
42 lines (35 loc) · 1.01 KB
/
defaults.js
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
33
34
35
36
37
38
39
40
41
42
'use strict';
PhonicsApp.config(function ($provide) {
$provide.constant('defaults',
// BEGIN-DEFAULTS-JSON
{
codegen: {
servers: 'http://generator.wordnik.com/online/api/gen/servers',
clients: 'http://generator.wordnik.com/online/api/gen/clients',
server: 'http://generator.wordnik.com/online/api/gen/servers/{language}',
client: 'http://generator.wordnik.com/online/api/gen/clients/{language}'
},
disableCodeGen: true,
examplesFolder: '/spec-files/',
exampleFiles: [
'default.yaml',
'minimal.yaml',
'heroku-pets.yaml',
'petstore.yaml',
'security.yaml'
],
// See keyword-map.js for object format
autocompleteExtension: {},
backendEndpoint: '/editor/spec',
useBackendForStorage: false,
backendHelathCheckTimeout: 5000,
useYamlBackend: false,
disableFileMenu: false,
headerBranding: false,
enableTryIt: true,
brandingCssClass: '',
schemaUrl: '/schema/swagger.json'
}
// END-DEFAULTS-JSON
);
});