UNPKG

tsoa-custom-decorators

Version:

Build swagger-compliant REST APIs using TypeScript and Node

52 lines (51 loc) 1.62 kB
{ "swagger": { "outputDirectory": "./dist", "entryFile": "./tests/fixtures/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/hapi/server.ts", "routesDir": "./tests/fixtures/hapi", "middleware": "hapi", "authenticationModule": "./tests/fixtures/hapi/authentication.ts" } }