You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert

7
7
8
-
#### This lib helps to build `REST API` with `C#`and `AspNet` easier than writing it from scratch over and over in different projects. It helps to build consistent API (with same `REST` routes scheme) with minimal amount of code: minimal REST controller contains 10 lines of code.
8
+
##10 Lines of code = Full CRUD and even BULK with swagger docs
9
9
10
-

10
+
This ultimate lib helps to build `REST API` with `C#` and `AspNet` easier than writing it from scratch over and over in different projects. It helps to build a consistent API (with the same `REST` routes approach for different controllers) with minimal amount of code: the minimal REST controller contains **10 lines of code** with full *auto* support for all `CRUD` and `BULK` operations.
11
+
12
+
For the easiest way you only need:
13
+
1. EntityFramework `Entities`
14
+
2. DbContext with `DbSets`
15
+
3. Inject from DI Manager Class on startup level.
16
+
17
+

11
18
12
19
*[1. Key Features](#1-key-features)
13
20
*[2. API Contract](#2-api-contract)
@@ -85,7 +92,30 @@ If this toolkit should be used with `EntityFramework` you should derive you reso
85
92
86
93
### 4. Toolkit usage algorithm with EntityFramework
87
94
88
-
#### 4.1 REST Services
95
+
#### 4.1.0 Minimal REST service
96
+
97
+
What do we need Entity classes and `DbContext` and init am appropriate Manager class:
Full example is mentioned in section 6 (see below). But if you are starting to build new `REST Resource`
91
121
`API` you should do following:
@@ -224,7 +254,7 @@ public class CodeGrpcService : CodeService.CodeServiceBase
224
254
Unfortunately GRPC generates all types Request and therefore we should implement additional mapping to convert `DTO` to Response, see full example in this solution in the `Wissance.WebApiToolkit.TestApp` project
225
255
226
256
### 5. Nuget package
227
-
You could find nuget-package [here](https://www.nuget.org/packages/Wissance.WebApiToolkit)
257
+
*[Actual for version <= `3.x.y`, obsolete since `4.0.0`](https://www.nuget.org/packages/Wissance.WebApiToolkit)
228
258
229
259
### 6. Examples
230
260
Here we consider only Full CRUD controllers because **Full CRUD = Read Only + Additional Operations (CREATE, UPDATE, DELETE)**, a **full example = full application** created with **Wissance.WebApiToolkit** could be found [here](https://github.com/Wissance/WeatherControl)
0 commit comments