Docs / API Reference

9. API Reference

This section elucidates the inner workings of the Fabrix framework, and provides a reference for the module APIs.

Classes

9.1. Fabrix

This is the primary API that your application resources, such as Controllers and Services, will use to communicate with other areas of your application.

9.2. Spool

This interface is implemented by all Spools, and is relied upon by the Fabrix Application to harmoniously load and manage them.

9.3. Controller

Fabrix Controllers contain request handler methods. Controller methods receive requests from the client, and send responses to them.

9.4. Policy

A Policy is a special kind of handler that decides whether to forward requests to the Controllers.

9.5. Service

Fabrix Services contain most of the application’s business logic. Service methods are invoked by Controller handlers to process requests.

9.6. Model

A Model represents a domain object by defining its schema and backing store.

9.7. Resolver

A Resolver describes the methods necessary for translating data in a persistent store (e.g. database) to/from Model representations.