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 vote and comment on it.

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

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

  • Hot ideas
  • Top ideas
  • New ideas
  1. OData V4 service should support DateTime

    OData V4 should support DateTime or you should give the developer a way of converting datetime to datetimeoffset when the service is called.
    I have several serializable objects that are in 3rd party libraries (even Microsoft core classes) that have datetime properties that will not be exposable through OData V4 services.

    here is OASIS meeting showing that Edm.DateTime was discussed as adding back but then was "defer this to a future version"?
    https://issues.oasis-open.org/browse/ODATA-220

    https://aspnetwebstack.codeplex.com/workitem/2072

    141 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…)
      13 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.

      3 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 →
      • support WADL or JSDL in ASP.NET Web Api Help Pages

        useful to build tools for generating code, testing ( like for ex. svcutil, WCF Test Client)

        http://jsdl.codeplex.com/
        http://en.wikipedia.org/wiki/Web_Application_Description_Language

        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…)
          0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
        • Add flag to enable IExceptionLogger and IExceptionHandler 500 breaking change

          The "Web API Global Error Handling" document states:
          Because this functionality is being added in a minor release, one important constraint impacting the solution is that there be no breaking changes, either to type contracts or to behavior. This constraint ruled out some cleanup we would like to have done in terms of existing catch blocks turning exceptions into 500 responses. This additional cleanup is something we might consider for a subsequent major release.

          Please add a flag to enable clean up while at the same time not having a breaking change.

          66 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 →
          • How to send a confidential message body does not use SSL

            how can encryption the request body message after serialization by jsonMediaTypeFormatter

            4 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 →
            • Remove ambiguity from the interface of ODataQueryOptions

              Most of the interface exposed via ODataQueryOptions presents only get accessors and appears to be immutable.

              However, the OrderByQueryOption presents a mutable collection of OrderByNode that can be changed.

              See here,
              http://stackoverflow.com/questions/23512076/can-i-change-the-odataqueryoptions-used-for-my-odatacontrollers-request

              Changes to the collection appear to have no effect on the processing of the ODataController.

              Please could you either,

              Make the collection read-only.

              or preferabley,

              make it obvious how to use the interface to affect changes to processing later in the pipeline.

              3 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 →
              • Request throttling policy attribute

                Web API should have a built-in attribute and a IThrottlePolicyProvider similar to CORS implementation, to limit the number of times an endpoint gets executed by the same client within a given time period based on IP, client key and route.
                There are several implementations on the web regarding throttling but an official NuGet package would be nice.

                58 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 →
                • Support for stream binding and simplify upload case

                  Provide ability for binding to Stream property. It would be nice if I could create upload as easy as it is in MVC. Please provide out of the box suport for binding multipart/form-data or octet-stream to class with stream property.
                  It would be also nice If I could bind field with base64 string to stream property.

                  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…)
                    0 comments  ·  ASP.NET Web API  ·  Flag idea as inappropriate…  ·  Admin →
                  • Authorization on $expand functionality

                    Currently, there is no way to influence in what way $expand binds additional models. I would very much like to have some control over what models are binded, in order to apply authorization on these binded models.

                    Half a year ago I already created a StackOverflow thread (http://stackoverflow.com/questions/18254600/modify-binding-of-expand-function-when-unauthorized) with the exact same problem. Since I think that there is not enough attention paid to this problem, I've created this UserVoice thread.

                    8 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 →
                    • Ability to change the filter on the Server

                      In WebAPI we are Mostly returning a VM, which kind of flattens hierarchy.
                      CountryTable with CountryID,
                      StateTable with StateID
                      CityTable with CityID

                      Now Address Table has those fields as Foreign Keys(CountryID,StateID,CityID)

                      If i want to provide Filtering/Paging/Sorting on Address Type for Country,State,City there is no way to do that. Say i want to filer Address by Specific Country/State etc.

                      Would be Nice that we get intercept, but at the same time be able to modify Columns Names in the filter so that proper filtering is applied.

                      3 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 an ITraceWriter implementation based on ETW's EventSource

                        There's a tracing engine in WebApi based on ITraceWriter interface.
                        We should register an implementation as a service in HttpConfiguration:
                        config.Services.Replace(typeof(ITraceWriter), new MyTracer());

                        There're no any ITraceWriter implementation in WebApi by default. But there's a NuGet package Microsoft.AspNet.WebApi.Tracing which provides an implementation uses System.Diagnostics.Trace.

                        That's nice. But Microsoft widely promotes ETW engine for logging & tracing. It's a pity that there's no any official implementation of ITraceWriter which would uses System.Diagnostics.Tracing.EventSource (ETW).

                        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…)
                          0 comments  ·  ASP.NET Web API  ·  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 →
                          • Create an HTML Formatter

                            As suggested in the Add a HTML MediaTypeFormater to the Web API response, I would like to see a pure HTML Formatter. This would not use views or razor, rather it would generate a simple HTML page based on the model passed in. It would work like the XML and JSON serializers, producing a standard HTML format... objects would start with a <dl> tag with a class attribute set to the class name. It would contain a <dt> <dd> pair for each property. If a property was a list, the <dd> would contain a <ul> where each <li> would contain…

                            14 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 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 →
                              • 44 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 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.

                                  45 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 →
                                  • ApiExplorer support for AsyncEntitySetController & EntitySetController

                                    Please enhance the ApiExplorer to fully support the AsyncEntitySetController & EntitySetController. It is possible to generated some help documentation by using ApiExplorerSetting( IgnoreApi=false) attribute, but the help pages contain the incorrect relative path / route, the Queryable Gets are ignored, and the request/response samples are missing.

                                    Optionally, exposing some of the internal class such as HttpRouteParser, HttpParsedRoute, etc… would allow for custom ApiExplorers (like ODataApiExplorer).

                                    12 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  ·  General ASP.NET  ·  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" }) …

                                      14 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 →
                                      • Make Web API Model Binding more like MVC Model Binding

                                        I would be nice to be able to upload a file as part of a model to Web API like we currently can on MVC. Web API doesn't accept HttpPostedFileBase as a field type like MVC does.

                                        6 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  ·  General ASP.NET  ·  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

                                          193 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