MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / ISpecStore

Interface ISpecStore

src/core/interfaces/ISpecService.ts:110–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 * Interface for persisting OpenAPI specifications
109 */
110export 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

Implementers 1

FileSystemSpecServicesrc/core/SpecService.ts

Calls

no outgoing calls

Tested by

no test coverage detected