Skip to main content
Skip to main content

API Reference

Welcome to the Mifty Framework API Reference. This section provides comprehensive documentation for all core modules, interfaces, and utilities available in the Mifty framework.

Core Modules

The Mifty framework is built around several core modules that provide the foundation for rapid API development:

Base Classes

Interfaces

Utilities

Application Core

  • App - Main application class
  • Loaders - Application initialization loaders

Quick Navigation

By Category

Controllers & Routing

Services & Business Logic

Data Access

Utilities

By Use Case

Creating a New Module

  1. IRepository Interface - Define data access
  2. BaseRepository - Implement repository
  3. IService Interface - Define business logic
  4. BaseService - Implement service
  5. BaseController - Create API endpoints

Handling Requests

  1. RequestOptionBuilder - Parse query parameters
  2. SearchOptions - Handle search and pagination
  3. ApiResponse - Return standardized responses

Type Definitions

All interfaces and types are fully documented with TypeScript definitions. The framework uses strict typing to ensure type safety and better developer experience.

Examples

Each API reference page includes:

  • Complete method signatures
  • Parameter descriptions
  • Return type information
  • Usage examples
  • Related methods and classes

Getting Started

If you're new to the Mifty framework, start with:

  1. App - Understanding the application structure
  2. BaseController - Creating your first controller
  3. BaseService - Implementing business logic
  4. BaseRepository - Data access patterns