tsoa-custom-decorators
Version:
Build swagger-compliant REST APIs using TypeScript and Node
53 lines (52 loc) • 1.69 kB
JSON
{
"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": "custom-tsoa-template.ts",
"authenticationModule": "./tests/fixtures/custom/authentication.ts"
}
}