Skip to content

Instantly share code, notes, and snippets.

@diegobersano
Created April 24, 2017 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegobersano/bfb7f62fa50b7c7cef2becdf5b516a67 to your computer and use it in GitHub Desktop.
Save diegobersano/bfb7f62fa50b7c7cef2becdf5b516a67 to your computer and use it in GitHub Desktop.
using System.Diagnostics.CodeAnalysis;
using System.Net.Http.Headers;
using System.Web;
using System.Web.Http;
namespace WebApi.Areas.HelpPage
{
/// <summary>
/// Use this class to customize the Help Page.
/// For example you can set a custom <see cref="System.Web.Http.Description.IDocumentationProvider"/> to supply the documentation
/// or you can provide the samples for the requests/responses.
/// </summary>
public static class HelpPageConfig
{
public static void Register(HttpConfiguration config)
{
// Uncomment the following to use the documentation from XML documentation file.
config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data")));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment