'Asp.NET Core minimal API with dynamic body parameter
I am trying to generate REST API endpoints on the fly, when i don't know the exact dto. So the natural thing to do would be to accept something like object,JObject,dynamic or even string.
But in addition to that, i would like to generate some object information to the parameter for swagger/openapi (NSwag) to consume.
Is there any way i could do that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
