ASP.NET Web API

Feedback on ASP.NET Web API

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Provide LowercaseUrls property for ASP.NET Web API

    In ASP.NET MVC, I am able to use the following line of code: routes.LowercaseUrls = true;

    However, this option is not available to me while using ASP.NET Web API. A similar option should be made available in ASP.NET Web API as well.

    2 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
    • Web API XML Serialization of DateTimeOffset in ISO 8601 format

      Web API 2 serialize DateTimeOffset as two different values:

      Datetime
      OffSetMinutes

      It should be serialized as a singlue value and in ISO 8601 format just like JsonMediaTypeFormatter does. There's a work around to have string property for every datetimeoffset property that you have in your model and would like to have as single value and in ISO 8601 format. It would be good if it is out of box support just like JsonMediaTypeFormatter.

      2 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
      • Provide a native RouteVersion attribute

        Provide a native RouteVersion attribute for ASP.NET Web API that can be used to version ASP.NET Web API Controllers similar to what is outlined in this article: https://visualstudiomagazine.com/articles/2014/10/28/asp-net-mvc-5-1-new.aspx

        1 vote
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
        • ApiExplorer - ApiDescriptions

          Make an option to set comparison (ApiDescriptionComparer) to fixing ambiguous route for versioning purpose (different namespace)

          /api/products
          /api/products

          1 vote
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
          • Make ApiDescription.ResponseDescription setter public

            It is impossible to provide a custom implementation of IApiExplorer because the setter for ApiDescription.ResponseDescription is internal. Please either make the setter public (or make the interface internal).

            13 votes
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              under review  ·  1 comment  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
            • Provide a way to easily Mock HttpRequestMessage for an ApiController

              Currently it is not easy to Mock or use a DI Container to inject HttpRequestMessage into an ApiController constructor. Therefore, if you are attempting to leverage any common functionality throughout the ApiController class (such as reading common Request Headers), you cannot accomplish this today because HttpRequestMessage is only available at the Method level and not at the time the class is constructed/instantiated. Being able to use DI and Mocking of HttpRequestMessage for an ApiController constructor would be tremendously useful and helpful.

              7 votes
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
              • ApiExplorer does not support nested types

                public class MyClass
                {
                public List<MyClass> MyChildren { get; set; }
                }

                This kind of scenario provides an exception of type AggregateException in HelpPageSampleGenerator.WriteSampleObjectUsingFormatter method.

                Having this kind of structure is useful when you want to return a tree of objects.

                0 votes
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                • ApiExplorer does not support nested types

                  public class MyClass
                  {
                  public List<MyClass> MyChildren { get; set; }
                  }

                  This kind of scenario provides an exception of type AggregateException in HelpPageSampleGenerator.WriteSampleObjectUsingFormatter method.

                  Having this kind of structure is useful when you want to return a tree of objects.

                  7 votes
                  Vote
                  Sign in
                  Check!
                  (thinking…)
                  Reset
                  or sign in with
                  • facebook
                  • google
                    Password icon
                    I agree to the terms of service
                    Signed in as (Sign out)
                    You have left! (?) (thinking…)
                    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                  • Error in WebApi 2 Attribute Routing documentation

                    This page refers to a property of an attribute routing being called RouteName when it is just called Name.

                    [Route("api/books/{id}", RouteName="GetBookById")]

                    should be

                    [Route("api/books/{id}", Name="GetBookById")]

                    http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2#route-names

                    2 votes
                    Vote
                    Sign in
                    Check!
                    (thinking…)
                    Reset
                    or sign in with
                    • facebook
                    • google
                      Password icon
                      I agree to the terms of service
                      Signed in as (Sign out)
                      You have left! (?) (thinking…)
                      0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                    • Add System.Web.Http.ModelBinding.HttpPostedFileBaseModelBinder to mirror the System.Web.Mvc.HttpPostedFileBaseModelBinder

                      The System.Web.Mvc.HttpPostedFileBaseModelBinder class works well.

                      Can it be mirrored for the Web API

                      15 votes
                      Vote
                      Sign in
                      Check!
                      (thinking…)
                      Reset
                      or sign in with
                      • facebook
                      • google
                        Password icon
                        I agree to the terms of service
                        Signed in as (Sign out)
                        You have left! (?) (thinking…)
                        under review  ·  1 comment  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                      • Support web.config transformations on build

                        It appears that WebAPI projects do not automatically transform web.config files on build. After getting used to this for other .NET project types, it's difficult to make the exception in the case of WebAPI projects.

                        7 votes
                        Vote
                        Sign in
                        Check!
                        (thinking…)
                        Reset
                        or sign in with
                        • facebook
                        • google
                          Password icon
                          I agree to the terms of service
                          Signed in as (Sign out)
                          You have left! (?) (thinking…)
                          1 comment  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                        • hypermedia type and HAL

                          RESTFul API should be provides hypermedia types and the WebAPI could provide native support to hypermedia and create automatically links to resources.

                          The WebAPI implementatio could have setting variable to indicate the automatically links creation.

                          1 vote
                          Vote
                          Sign in
                          Check!
                          (thinking…)
                          Reset
                          or sign in with
                          • facebook
                          • google
                            Password icon
                            I agree to the terms of service
                            Signed in as (Sign out)
                            You have left! (?) (thinking…)
                            0 comments  ·  Flag idea as inappropriate…  ·  Admin →
                          • 48 votes
                            Vote
                            Sign in
                            Check!
                            (thinking…)
                            Reset
                            or sign in with
                            • facebook
                            • google
                              Password icon
                              I agree to the terms of service
                              Signed in as (Sign out)
                              You have left! (?) (thinking…)
                              1 comment  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                            • Add a fluent OData query configuration API

                              In the current release of OData Web API, security for queries is applied via the Queryable attribute or via ODataQueryOptions. The current system lacks any built-in method for restricting which fields can be used with the $filter query option. Implementing a trivial list of fields that support $filter is difficult, given that it can apply to relations.

                              Instead, consider adding a "fluent" configuration API that captures this information at the entity level and allows orderby & filter to be "entity model aware" (for lack of a better term).

                              For example,
                              var settingsBuilder = ODataConventionSettingsBuilder();
                              settingsBuilder.Entity<Order>().OrderByProperties("Id");
                              settingsBuilder.Entity<Order>()
                              .OrderByProperties({ "Id", "Name" }) …

                              20 votes
                              Vote
                              Sign in
                              Check!
                              (thinking…)
                              Reset
                              or sign in with
                              • facebook
                              • google
                                Password icon
                                I agree to the terms of service
                                Signed in as (Sign out)
                                You have left! (?) (thinking…)
                                under review  ·  0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                              • Add ASP.NET MVC view generation features to ASP.NET Web API

                                I think maintaining and working with ASP.NET MVC and ASP.NET Web API side by side in the same project is a drain on development resources and support cost.
                                I would like to use ASP.NET Web API to generate Razor views via an additional NuGet package rather then relying on ASP.NET MVC.

                                57 votes
                                Vote
                                Sign in
                                Check!
                                (thinking…)
                                Reset
                                or sign in with
                                • facebook
                                • google
                                  Password icon
                                  I agree to the terms of service
                                  Signed in as (Sign out)
                                  You have left! (?) (thinking…)
                                  1 comment  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                                • Mono-For-Android-compatible version of Web Api client

                                  The current Web Api Client is not compatible with Mono For Android, and trying to use HttpWebRequest and OData from Android mobile app. is a pain. Not sure about the amount of effort involved, but the author of Json.Net recently provided an mfa-compatible version, packaged as a Portable Class Library.

                                  10 votes
                                  Vote
                                  Sign in
                                  Check!
                                  (thinking…)
                                  Reset
                                  or sign in with
                                  • facebook
                                  • google
                                    Password icon
                                    I agree to the terms of service
                                    Signed in as (Sign out)
                                    You have left! (?) (thinking…)
                                    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                  • Add SSL to HttpMethodAttribute

                                    Add an optional parameter to the HttpMethodAttributes to enforce SSL on methods/actions eg.

                                    [HttpGet(SSL=Required)]
                                    public .... Get(){}

                                    [HttpPost(SSL=Optional)]
                                    ...

                                    [HttpPut(SSL=NotSupported)]
                                    ...

                                    31 votes
                                    Vote
                                    Sign in
                                    Check!
                                    (thinking…)
                                    Reset
                                    or sign in with
                                    • facebook
                                    • google
                                      Password icon
                                      I agree to the terms of service
                                      Signed in as (Sign out)
                                      You have left! (?) (thinking…)
                                      under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                    • Make WebAPI support everything MVC does minus views.

                                      I think most people expectations would rightfully (IMHO) that WebAPI would support everything MVC does minus any view rendering or ActionResult overhead. When I search the web I see many comments relating to "I can do X in MVC but not in WebAPI". Example: Multipart/form-data or jsonp handling works in MVC out of the box.

                                      18 votes
                                      Vote
                                      Sign in
                                      Check!
                                      (thinking…)
                                      Reset
                                      or sign in with
                                      • facebook
                                      • google
                                        Password icon
                                        I agree to the terms of service
                                        Signed in as (Sign out)
                                        You have left! (?) (thinking…)
                                        under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                      • 35 votes
                                        Vote
                                        Sign in
                                        Check!
                                        (thinking…)
                                        Reset
                                        or sign in with
                                        • facebook
                                        • google
                                          Password icon
                                          I agree to the terms of service
                                          Signed in as (Sign out)
                                          You have left! (?) (thinking…)
                                          1 comment  ·  Flag idea as inappropriate…  ·  Admin →
                                        • Execution Order of Mvc4 WebApi Action Filters

                                          There is no way to forecast the execution order of WebApi Action Filters. It changes randomly each time the code is changed. It would be nice to have an integer property to control the order like in normal Mvc controllers, but also respecting the order they are put on the action method would be acceptable

                                          273 votes
                                          Vote
                                          Sign in
                                          Check!
                                          (thinking…)
                                          Reset
                                          or sign in with
                                          • facebook
                                          • google
                                            Password icon
                                            I agree to the terms of service
                                            Signed in as (Sign out)
                                            You have left! (?) (thinking…)
                                            4 comments  ·  Flag idea as inappropriate…  ·  Admin →
                                          ← Previous 1
                                          • Don't see your idea?

                                          ASP.NET Web API

                                          Feedback and Knowledge Base