11# CodeFirstApi
22
3- Mainly a generator project, to create REST API and appropriate interfaces for easy working in Blazor InteractiveAuto render mode.
3+ Code generator project, to create REST API and appropriate interfaces for easy working in Blazor InteractiveAuto render mode.
44- Based on interface definition in Shared project
55 - Create Controller based REST API, to be used in Backend (respecting Authorize attribute).
66 - Create a client to be used in Razor Components in WebAssembly Render mode, which calls the REST API above.
@@ -58,6 +58,7 @@ Nuget package will not be released later on when the code is a bit more stable.
5858- better handling of state persistance key for arguments (using JSON of arguments now, which is not optimal)
5959- add Verb attribute (can be combined with route)
6060- add allow anonymous attribute
61+ - add Unity HTTP Client generator support
6162
6263
6364## Similar
@@ -78,4 +79,9 @@ Nuget package will not be released later on when the code is a bit more stable.
7879 - And due to the class per method, quite a lot needs to be injected to use adjecent functionality
7980 - the ` @inject ICall<AddComment, Guid> AddComment ` is a good example of that
8081 - you need to know what request class you want to use and what it should return.
81- - This seems unnecessary.
82+ - This seems unnecessary.
83+
84+ - https://github.com/RicoSuter/NSwag
85+ - Can create Clients from Server side APIs
86+ - But needs an extra build step to generate OpenAPI specification, from which the Clients can be generated
87+ - And needs extra configuration to share the types themselves, as there is an in between format instead of using code itself for definition.
0 commit comments