Options
All
  • Public
  • Public/Protected
  • All
Menu

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

export
class

ApiFileOperations

Hierarchy

  • ApiFileOperations

Index

Constructors

constructor

Properties

Private filePath

filePath: string

Path to the folder where the api will be generated.

type

{string}

memberof

ApiFileOperations

Methods

createDirectoryStructure

  • createDirectoryStructure(): Promise<boolean[]>

createPackageJson

  • createPackageJson(options: PackageJsonInfo, dialect: string): Promise<boolean>

Private getDependenciesForDb

  • getDependenciesForDb(dialect: string): string

getFilePath

  • getFilePath(): string

initializeCommons

  • initializeCommons(): Promise<boolean[]>

initializeConfig

initializeControllers

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

initializeModels

  • initializeModels(dialect: string, schema: Schema): Promise<boolean[]>

initializeORM

  • initializeORM(dialect: string): Promise<boolean>

initializeRepositories

  • initializeRepositories(dialect: string, schema: Schema): Promise<boolean[]>

initializeServices

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

installDependencies

  • installDependencies(dialect: string): Promise<boolean>

Generated using TypeDoc