| 108 | * Interface for persisting OpenAPI specifications |
| 109 | */ |
| 110 | export interface ISpecStore { |
| 111 | /** |
| 112 | * Scan a directory and persist found specifications |
| 113 | */ |
| 114 | scanAndSave(folderPath: string): Promise<void>; |
| 115 | |
| 116 | /** |
| 117 | * Persist the catalog of specifications |
| 118 | */ |
| 119 | saveSpecCatalog(catalog: SpecCatalogEntry[]): Promise<void>; |
| 120 | |
| 121 | /** |
| 122 | * Load the catalog of specifications |
| 123 | */ |
| 124 | loadSpecCatalog(): Promise<SpecCatalogEntry[]>; |
| 125 | |
| 126 | /** |
| 127 | * Persist a single specification |
| 128 | */ |
| 129 | saveSpec(spec: OpenAPIV3.Document, specId: string): Promise<void>; |
| 130 | |
| 131 | /** |
| 132 | * Load a single specification by ID |
| 133 | */ |
| 134 | loadSpec(specId: string): Promise<OpenAPIV3.Document>; |
| 135 | } |
| 136 | |
| 137 | /** |
| 138 | * Interface for exploring and querying OpenAPI specifications |
no outgoing calls
no test coverage detected