Options
All
  • Public
  • Public/Protected
  • All
Menu

Class which implements the logic for implementing raml generation file related actions.

export
class

RamlFileOperations

Hierarchy

  • RamlFileOperations

Index

Constructors

constructor

Properties

Private filePath

filePath: string

Path to the folder where the raml will be generated.

type

{string}

memberof

ApiFileOperations

Methods

createDirectoryStructure

  • createDirectoryStructure(): Promise<boolean[]>

generateSchemaApiFiles

generateSchemaExampleFiles

  • generateSchemaExampleFiles(schema: Schema): Promise<boolean[]>
  • Generate .json entity for every table from schema. File will be saved on path: ./raml/types/entityName.json

    Parameters

    • schema: Schema

      schema containing tables.

    Returns Promise<boolean[]>

    generated examle files.

generateSchemaExamplesFilesFromCache

  • generateSchemaExamplesFilesFromCache(): Promise<boolean[]>

generateSchemaTypeFiles

  • generateSchemaTypeFiles(schema: Schema): Promise<boolean[]>

getFilePath

  • getFilePath(): string

Generated using TypeDoc