From 9cc20ff114d234b4ed92a3efa7264307aea884bd Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Wed, 4 Jan 2017 17:44:47 -0800 Subject: [PATCH] Edited docs, removed unnecessary usings for ApiDescription (#5634) Addresses #5625 --- src/Microsoft.AspNetCore.Mvc.ApiExplorer/ApiDescription.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.AspNetCore.Mvc.ApiExplorer/ApiDescription.cs b/src/Microsoft.AspNetCore.Mvc.ApiExplorer/ApiDescription.cs index d1b4e0c9de..40107e4e8a 100644 --- a/src/Microsoft.AspNetCore.Mvc.ApiExplorer/ApiDescription.cs +++ b/src/Microsoft.AspNetCore.Mvc.ApiExplorer/ApiDescription.cs @@ -1,10 +1,8 @@ // 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; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Abstractions; -using Microsoft.AspNetCore.Mvc.ModelBinding; namespace Microsoft.AspNetCore.Mvc.ApiExplorer { @@ -44,11 +42,10 @@ namespace Microsoft.AspNetCore.Mvc.ApiExplorer public string RelativePath { get; set; } /// - /// Gets the list of possible formats for a response. + /// Gets the list of possible formats for a request. /// /// - /// Will be empty if the action returns no response, or if the response type is unclear. Use - /// ProducesAttribute on an action method to specify a response type. + /// Will be empty if the action does not accept a parameter decorated with the [FromBody] attribute. /// public IList SupportedRequestFormats { get; } = new List();