Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Edited Issue: ASP.Net Web API Help Pages: Document Model Data Annotations [877]

$
0
0
Can the ApiExplorer provide a way to generate documentation which details the Properties (and their data annotations) of an ApiController action paramater?

If the action method of a Web API Controller accepts a complex type model object, then currently the ApiExplorer will generate documentation stipulating the name of the parameter and its description.

Consumers of the API should ALSO be made aware which properties are Required and what restrictions apply to the data they send in ...

e.g. Required annotations, Range annotations like [StringLength(50, MinimumLength = 1)] and all the others...


Viewing all articles
Browse latest Browse all 7925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>