Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Unassigned: Add support for Status Code/HttpHeader attributes in web api help [1018]

$
0
0
This will allow a REST API to be self documenting for all inputs and outputs when applied on API functions.

Example usage:

__Http Headers__
[RequestHeaderDescription(Name = "X-Auth-Token", DescriptionResourceName = "XAuthHeaderDescription", DescriptionResourceType = typeof(ServiceApiResources))]


__Status Code__
[ResponseStatusDescription(StatusCode = HttpStatusCode.OK, DescriptionResourceName = "OnValidRequest", DescriptionResourceType = typeof(ServiceApiResources))]


Example Gists:
https://gist.github.com/anonymous/5478615
https://gist.github.com/anonymous/cd99f8808fed635d8ddb

How to use it within GenerateApiModel

https://gist.github.com/anonymous/5478617

Cheers,
Jamie

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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