// 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.Collections.Generic;
using Microsoft.AspNetCore.Routing;
namespace Microsoft.AspNetCore.Mvc.ApiExplorer
{
///
/// A metadata description of routing information for an .
///
public class ApiParameterRouteInfo
{
///
/// Gets or sets the set of objects for the parameter.
///
///
/// Route constraints are only applied when a value is bound from a URL's path. See
/// for the data source considered.
///
public IEnumerable Constraints { get; set; }
///
/// Gets or sets the default value for the parameter.
///
public object DefaultValue { get; set; }
///
/// Gets a value indicating whether not a parameter is considered optional by routing.
///
///
/// An optional parameter is considered optional by the routing system. This does not imply
/// that the parameter is considered optional by the action.
///
/// If the parameter uses for the value of
/// then the value may also come from the
/// URL query string or form data.
///
public bool IsOptional { get; set; }
}
}