NuGet package | Owin.Framework.Pages.Core |
GitHub source | OwinFramework.Pages.Core |
You can attach this attribute to pages, services and service endpoints to include an example usage into self-documentation for the website API.
[IsService("math", "/math/", new[] { Method.Post })] [Description("<h1>My Service</h1><p>Is awesome</p>")] internal class MyService { [Endpoint] [Description("<h1>My Endpoint</h1><p>Does amazing things</p>")] [Example("<p>POST /math/add?a=5&b=6</p>")] public void Add(IEndpointRequest request) { } }