// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Web.Http.Controllers; namespace System.Web.Http.Description { /// /// Defines the provider responsible for documenting the service. /// public interface IDocumentationProvider { /// /// Gets the documentation based on . /// /// The controller descriptor. /// Documentation for the controller. string GetDocumentation(HttpControllerDescriptor controllerDescriptor); /// /// Gets the documentation based on . /// /// The action descriptor. /// Documentation for the action. string GetDocumentation(HttpActionDescriptor actionDescriptor); /// /// Gets the documentation based on . /// /// The parameter descriptor. /// Documentation for the parameter. string GetDocumentation(HttpParameterDescriptor parameterDescriptor); /// /// Gets the response documentation based on . /// /// The action descriptor. /// Documentation for the action response. string GetResponseDocumentation(HttpActionDescriptor actionDescriptor); } }