I do the documentation for my WepAbpi server. Since I just need a basic description, I decided to use the standard Microsoft functionality to create the Help Page. Installed, figured out, set everything up, everything works. Except for one moment. Now, it shows which model (class) my Controller expects, if the model is passed, as a body parameter (as an argument in the controller). But how to generate a description of the model (class), if the data for it comes, not as an argument to the controller, but as data multipart / form-data. Those. inside the controller, I create a model via HttpContext:
var provider = new MultipartMemoryStreamProvider(); await Request.Content.ReadAsMultipartAsync(provider); var formContent = HttpContext.Current.Request.Form; ModelWhatNeededDocumentation modlel = new ModelWhatNeededDocumentation() { param1= formContent["param11"], param2 = formContent["param22"]}; Also on the help page there is an auto-generated Sample for that request from the form that my controller is waiting for. Here it would be nice, the same would be fine-tuned for my ModelWhatNeededDocumentation.