-
Notifications
You must be signed in to change notification settings - Fork 8
REST API with one line of code
Ushakov Michael edited this page Sep 22, 2025
·
9 revisions
This page describes how to use and what limitations Wissance.WebApiToolkit has when we are speaking about the one-line controller feature . Adding a controller in one line occurs without declaring a controller class, thereby we are free from declaring new types in the application and save our time on writing code.
This feature imply following limitations:
- At the current version, the 1-line controller feature is working only with the
EntityFarameworkrelated manager class. - For this feature, we are using SimplifiedEfModelManager therefore
DTOandEntityare the same class. This simplification reduces factory parameters. However, we will add one more option to pass the factory in a separate method too see