Skip to main content

getSpecificationFilesForService

Callable

  • getSpecificationFilesForService(directory: string): (id: string, version?: string) => Promise<any>

  • Returns specification files for a service

    Optionally specify a version to of the service

    @example
    import utils from '@eventcatalog/utils';

    const { getSpecificationFilesForService } = utils('/path/to/eventcatalog');

    // returns a list of specification files for a service
    await getSpecificationFilesForService('InventoryService', '0.0.1');