Swagger API TypeScript

JS
R
JavaScript

Typescript definitions and utilities for Swagger (OpenAPI) specifications. Enables type-safe API development and integration in TypeScript projects.

1"docs": "npx swaggerGen -c ./swaggerConfig.json"
2
3
4```
5{
6  "swagger": {
7      "outputFormat": "openapi_3",
8      "host": "coding-cloud.com",
9      "produces": [
10        "application/json"
11      ],
12      "basePath": "/v1/api/",
13      "specVersion": 3,
14      "outputDirectory": "./docs/swagger-ui",
15      "entryFile": "./src/controllers/public.ts",
16      "securityDefinitions": {
17        "Bearer": {
18          "type": "apiKey",
19          "in": "header",
20          "name": "authorization"
21        }
22      }
23  }
24}
25```

Created on 1/3/2022