Skip to content

REST API with one line of code

Ushakov Michael edited this page Sep 22, 2025 · 9 revisions

Introduction

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.

Limitations

This feature imply following limitations:

  1. At the current version, the 1-line controller feature is working only with the EntityFaramework related manager class.
  2. For this feature, we are using SimplifiedEfModelManager therefore DTO and Entity are 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

How to use

Clone this wiki locally