Become a member!

DelphiMVCFramework - The Official Guide

DelphiMVCFramework - The Official Guide

Published by LeanPub in 2020


Professional RESTful and JSON-RPC API Development

The comprehensive guide to DelphiMVCFramework, the most popular open-source Delphi project on GitHub for web API development. This book takes you from fundamentals to professional production deployment, covering everything you need to build enterprise-grade RESTful and JSON-RPC APIs.

Why This Book

DelphiMVCFramework has become the de facto standard for building web APIs in Delphi, trusted by enterprises worldwide for mission-critical applications. This official guide, written by the framework’s creator, provides:

  • Complete coverage from basics to advanced enterprise patterns
  • Real-world examples from production systems
  • Best practices learned from years of framework development
  • Step-by-step tutorials for common scenarios
  • Production deployment strategies and optimization techniques

What You’ll Learn

Foundation & Core Concepts

  • MVC pattern implementation in Delphi
  • Routing and HTTP method handling
  • Request/response lifecycle
  • Middleware and filters
  • Dependency injection

RESTful API Development

  • Resource-oriented architecture
  • CRUD operations and data handling
  • Content negotiation (JSON, XML, HTML)
  • HTTP status codes and error handling
  • API versioning strategies

JSON-RPC Services

  • JSON-RPC 2.0 specification
  • Method registration and dispatching
  • Batch requests and notifications
  • Error handling and custom errors

Advanced Features

  • Authentication (Basic, JWT, custom)
  • Authorization and role-based access
  • Swagger/OpenAPI documentation generation
  • Server-Sent Events (SSE)
  • WebSocket support
  • Database integration with FireDAC
  • MVCActiveRecord ORM

Production Deployment

  • Performance optimization
  • Caching strategies
  • Logging and monitoring
  • Security best practices
  • Docker deployment
  • Linux server deployment

Complete Real-World Projects

The book includes multiple complete projects you can use as templates:

  1. RESTful CRUD API - Complete customer management system
  2. JSON-RPC Service - Calculator and notification service
  3. Authentication System - JWT-based authentication
  4. File Upload API - Multi-part file handling
  5. Real-time Updates - Server-Sent Events implementation

Available Editions & Translations

This book is available in multiple formats and languages to serve the global Delphi community:

🇬🇧 English Edition

The original edition, continuously updated with the latest framework features.

Buy English Edition:

🇧🇷 Edição em Português (Brazilian Portuguese)

Tradução completa para desenvolvedores de língua portuguesa.

Comprar Edição em Português:

🇪🇸 Edición en Español (Spanish)

Traducción completa para desarrolladores de habla hispana.

Comprar Edición en Español:


Table of Contents

  1. Introduction to DelphiMVCFramework
  2. Getting Started - First project, project structure, conventions
  3. Routing and Controllers - URL mapping, parameters, HTTP methods
  4. Views and Rendering - Templates, content types, serialization
  5. Data Handling - JSON, XML, datasets, custom formats
  6. RESTful Services - Resource design, CRUD, best practices
  7. JSON-RPC Services - Protocol implementation, method registration
  8. Authentication - Basic, JWT, custom authentication
  9. Authorization - Role-based access, custom authorization
  10. Middleware and Filters - Request/response pipeline
  11. Database Integration - FireDAC, MVCActiveRecord ORM
  12. Advanced Features - SSE, WebSocket, file uploads
  13. API Documentation - Swagger/OpenAPI generation
  14. Testing - Unit tests, integration tests
  15. Deployment - Windows, Linux, Docker
  16. Performance - Optimization, caching, profiling

Source Code

All examples and complete projects are available in the book’s GitHub repository, continuously updated to work with the latest framework version.

Target Audience

This book is for:

  • Delphi developers wanting to learn modern web API development
  • Backend developers transitioning to Delphi
  • Enterprise developers building scalable REST services
  • Anyone interested in professional API development with Delphi

Basic Delphi/Object Pascal knowledge is assumed. Web development experience is helpful but not required.

About DelphiMVCFramework

DelphiMVCFramework is the most popular Delphi framework for building RESTful and JSON-RPC APIs. With over 1,000 stars on GitHub and used in production by companies worldwide, it provides:

  • Battle-tested since 2010 in high-traffic production systems
  • Active development with regular updates and new features
  • Comprehensive documentation and 100+ samples
  • Vibrant community with 6000+ members on Facebook group
  • Professional support available through Patreon

Reviews

“The definitive guide to building professional APIs with Delphi. Whether you’re building internal services or public APIs, this book covers everything you need.”

“Finally, a comprehensive resource for DelphiMVCFramework. The real-world projects alone are worth the price.”

“As someone who moved from Node.js to Delphi, this book made the transition smooth. The framework is powerful and the book explains it perfectly.”

Updates & Support

LeanPub editions include free updates - when the book is updated, you get the new version free. The book is regularly updated to cover new framework features and incorporate reader feedback.

For framework support:


About the Author

Daniele Teti is the creator and lead developer of DelphiMVCFramework. With over 25 years of professional software development experience, he has built enterprise systems for banking, healthcare, and industrial automation. He is a frequent speaker at international developer conferences and author of the best-selling Delphi Cookbook series.


← Back to all books

Comments

comments powered by Disqus