@necessarylion/adonis-autoswagger 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,30 @@
1
+ import type { options } from "./types";
2
+ export declare class AutoSwagger {
3
+ private options;
4
+ private schemas;
5
+ private commentParser;
6
+ private modelParser;
7
+ private interfaceParser;
8
+ private enumParser;
9
+ private routeParser;
10
+ private validatorParser;
11
+ private customPaths;
12
+ ui(url: string, options?: options): string;
13
+ rapidoc(url: string, style?: string): string;
14
+ scalar(url: string, proxyUrl?: string): string;
15
+ stoplight(url: string, theme?: "light" | "dark"): string;
16
+ jsonToYaml(json: any): any;
17
+ json(routes: any, options: options): Promise<any>;
18
+ writeFile(routes: any, options: options): Promise<void>;
19
+ private readFile;
20
+ docs(routes: any, options: options): Promise<any>;
21
+ private generate;
22
+ private getDataBasedOnAdonisVersion;
23
+ private getSchemas;
24
+ private getValidators;
25
+ private getSerializers;
26
+ private getModels;
27
+ private getInterfaces;
28
+ private getFiles;
29
+ private getEnums;
30
+ }