Functions

f
buildRestPlugins(options?: RestStarterOptions): IPlugin[]

Builds the canonical REST plugin set. The list is exported so the microservice starter can compose from it without duplication.

f
createRestApp(options?: RestStarterOptions): IKernelApplication

Creates a fully wired REST application. The factory registers the curated REST plugin set, adds the error-handler middleware at priority 0 (outermost per the exceptions contract), and returns the un-started application.

Interfaces

I
RealtimeArm

The real-time arm: one option grouping the three plugins that together make a connection-oriented application work, each added only when its sub-arm is present.

I
RestStarterOptions

Options for createRestApp. Per-plugin optional arms are threaded straight through to each plugin factory. Omitted plugins use their default configuration (no arguments required).

Usage

import * as REST_starter_bundle___opinionated_plugin_composition_for_building_REST_APIs___Provides_a_single_factory___linkcode_createRestApp__that_returns_a_fully_wired___linkcode_IKernelApplication__with_the_curated_REST_plugin_set_and_error_handling_middleware__Also_exposes_the_option_type___linkcode_RestStarterOptions__and_the_plugin_builder___linkcode_buildRestPlugins__for_advanced_composition__ from "starters/rest-starter/src/index.ts";