Book Image

Mastering ABP Framework

By : Halil İbrahim Kalkan
Book Image

Mastering ABP Framework

By: Halil İbrahim Kalkan

Overview of this book

ABP Framework is a complete infrastructure for creating modern web applications by following software development best practices and conventions. With ABP's high-level framework and ecosystem, you can implement the Don’t Repeat Yourself (DRY) principle and focus on your business code. Written by the creator of ABP Framework, this book will help you to gain a complete understanding of the framework and modern web application development techniques. With step-by-step explanations of essential concepts and practical examples, you'll understand the requirements of a modern web solution and how ABP Framework makes it enjoyable to develop your own solutions. You'll discover the common requirements of enterprise web application development and explore the infrastructure provided by ABP. Throughout the book, you’ll get to grips with software development best practices for building maintainable and modular web solutions. By the end of this book, you'll be able to create a complete web solution that is easy to develop, maintain, and test.
Table of Contents (24 chapters)
Part 1: Introduction
Part 2: Fundamentals of ABP Framework
Part 3: Implementing Domain–Driven Design
Part 4: User Interface and API Development
Part 5: Miscellaneous

Building HTTP APIs

In this section, we will begin with ASP.NET Core's standard approach for creating HTTP APIs. Then we will see how ABP can automatically convert standard application services to HTTP API endpoints. But first, let's see how we can create API-only solutions with ABP Framework.

Creating an HTTP API project

When you create a new application or module with ABP Framework's startup solution templates, it already contains HTTP APIs for all the functionality provided by the application. However, it is also possible to create an HTTP API endpoint without an application UI if you want to.

You can use the -u none parameter when you create a new solution using ABP Framework, as shown in the following example:

abp new ApiDemo -u none

ApiDemo is our solution name here. In this way, we have a solution with an HTTP API endpoint but without a UI. The following figure shows the solution opened in Visual Studio:

Figure 14.1 –...