forked from lukeautry/tsoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom-tsoa.json
52 lines (52 loc) · 1.62 KB
/
custom-tsoa.json
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
43
44
45
46
47
48
49
50
51
52
{
"swagger": {
"outputDirectory": "./dist",
"entryFile": "./tests/fixtures/custom/server.ts",
"host": "localhost:3000",
"version": "1.0",
"name": "tsoa app",
"description": "a description",
"license": "MIT",
"basePath": "/v1",
"securityDefinitions": {
"api_key": {
"type": "apiKey",
"name": "access_token",
"in": "query"
},
"tsoa_auth": {
"type": "oauth2",
"authorizationUrl": "http://swagger.io/api/oauth/dialog",
"flow": "implicit",
"scopes": {
"write:pets": "modify things",
"read:pets": "read things"
}
}
},
"spec": {
"api_key": {
"type": "apiKey",
"name": "api_key",
"in": "header"
},
"tsoa_auth": {
"type": "oauth2",
"authorizationUrl": "http://swagger.io/api/oauth/dialog",
"flow": "implicit",
"scopes": {
"write:pets": "modify things",
"read:pets": "read things"
}
}
}
},
"routes": {
"basePath": "/v1",
"entryFile": "./tests/fixtures/custom/server.ts",
"routesDir": "./tests/fixtures/custom",
"middleware": "express",
"middlewareTemplate": "./tests/fixtures/custom/custom-tsoa-template.ts",
"authenticationModule": "./tests/fixtures/custom/authentication.ts"
}
}