Skip to content

Commit

Permalink
Addresses aspnet#5251
Browse files Browse the repository at this point in the history
  • Loading branch information
tuespetre committed Sep 9, 2016
1 parent eee1a9f commit 8ed5707
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// 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 Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.Formatters;

namespace Microsoft.AspNetCore.Mvc.ApiExplorer
{
/// <summary>
/// Provides a a set of possible content types than can be consumed by the action.
/// </summary>
public interface IApiRequestMetadataProvider
public interface IApiRequestMetadataProvider : IFilterMetadata
{
/// <summary>
/// Configures a collection of allowed content types which can be consumed by the action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

using System;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.AspNetCore.Mvc.Filters;

namespace Microsoft.AspNetCore.Mvc.ApiExplorer
{
/// <summary>
/// Provides a return type, status code and a set of possible content types returned by a
/// successful execution of the action.
/// </summary>
public interface IApiResponseMetadataProvider
public interface IApiResponseMetadataProvider : IFilterMetadata
{
/// <summary>
/// Gets the optimistic return type of the action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using Microsoft.AspNetCore.Mvc.ApiExplorer;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.Formatters;

namespace Microsoft.AspNetCore.Mvc
Expand All @@ -12,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc
/// A filter that specifies the type of the value and status code returned by the action.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true, Inherited = true)]
public class ProducesResponseTypeAttribute : Attribute, IApiResponseMetadataProvider, IFilterMetadata
public class ProducesResponseTypeAttribute : Attribute, IApiResponseMetadataProvider
{
/// <summary>
/// Initializes an instance of <see cref="ProducesResponseTypeAttribute"/>.
Expand Down

0 comments on commit 8ed5707

Please sign in to comment.