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 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.

    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 →
    • 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 →
      • 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 →
        • 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 →
          • 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 →
            ← Previous 1 2 Next →
            • Don't see your idea?

            ASP.NET Web API

            Feedback and Knowledge Base