@spailybot/moleculer-auto-openapi - v1.3.2
    Preparing search index...

    Type Alias ApiSettingsSchema

    ApiSettingsSchema: CommonSettingSchema & {
        assets?: AssetsConfig;
        http2?: boolean;
        httpServerTimeout?: number;
        internalServiceSpecialChar?: string | RegExp;
        ip?: string;
        log4XXResponses?: boolean;
        logRequest?: LogLevels | null;
        logRequestParams?: LogLevels | null;
        logResponse?: LogLevels | null;
        logResponseData?: LogLevels | null;
        logRouteRegistration?: LogLevels | null;
        optimizeOrder?: boolean;
        path?: string;
        port?: number;
        qsOptions?: IParseOptions;
        rootCallOptions?: CallingOptions;
        routes?: MoleculerWebTypes.ApiRouteSchema[];
        server?: boolean;
        [k: string]: any;
    }

    Type declaration

    • [k: string]: any

      for extra setting's keys

    • Optionalassets?: AssetsConfig

      It serves assets with the serve-static module like ExpressJS.

    • Optionalhttp2?: boolean

      Use HTTP2 server (experimental)

      false
      
    • OptionalhttpServerTimeout?: number

      HTTP Server Timeout

      null
      
    • OptionalinternalServiceSpecialChar?: string | RegExp

      Special char for internal services
      Note: RegExp type is not official

      "~"
      
      "~" => /~node/~action => /$node/~action
      
      /[0-9]+/g => /01234demo/hello2021 => /demo/hello `(not official)`
      
    • Optionalip?: string

      Exposed IP

      process.env.IP || "0.0.0.0"
      
    • Optionallog4XXResponses?: boolean

      If set to true, it will log 4xx client errors, as well

      false
      
    • OptionallogRequest?: LogLevels | null

      Log each request (default to "info" level)

      "info"
      
    • OptionallogRequestParams?: LogLevels | null

      Log the request ctx.params (default to "debug" level)

      "debug"
      
    • OptionallogResponse?: LogLevels | null

      Log each response (default to "info" level)

      "info"
      
    • OptionallogResponseData?: LogLevels | null

      Log the response data (default to disable)

      null
      
    • OptionallogRouteRegistration?: LogLevels | null

      Log the route registration/aliases related activity

      "info"
      
    • OptionaloptimizeOrder?: boolean

      Optimize route order

      true
      
    • Optionalpath?: string

      Global path prefix

    • Optionalport?: number

      Exposed port

      process.env.PORT || 3000
      
    • OptionalqsOptions?: IParseOptions

      Options passed on to qs

    • OptionalrootCallOptions?: CallingOptions

      CallOption for the root action api.rest

      null
      
    • Optionalroutes?: MoleculerWebTypes.ApiRouteSchema[]

      Gateway routes

      []
      
    • Optionalserver?: boolean

      Used server instance. If null, it will create a new HTTP(s)(2) server
      If false, it will start without server in middleware mode

      true