Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9039975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:52:07+00:00 2026-06-16T09:52:07+00:00

In the examples I have seen so far for MVC4 WebApi the following URL

  • 0

In the examples I have seen so far for MVC4 WebApi the following URL

/api/products

maps to the following action in the Products controller

GetAllProducts

Is the “All” required? It would be more logical to just use

GetProducts

The reason this is confusing in my app is that /api/products accepts a “filter” object that returns a subset of products not “all” the products.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T09:52:08+00:00Added an answer on June 16, 2026 at 9:52 am

    The “All” is not required. The only thing that matters is that the method name starts with “Get”. After that, the method parameters can also affect which action gets selected if there are parameters that come from the URI.

    Try renaming the “GetAllProducts” method that’s working for you to “GetProducts” and it should work just fine if you don’t change anything else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All examples of svn branching I have seen so far look like this svn
All the examples I have seen where the PropertyPlaceHolderConfigurer is used seem to be
I am trying to understand TDD more and all the examples I have seen
All the examples I've seen regarding a RESTful architecture have dealt with a single
I have found that in all examples (include rails documentation) that I have seen
All the examples I've seen so far involve blocking to get the result (via
I have seen many parcelable examples so far, but for some reason I can't
So far I have seen 1000 examples how to set items in listbox objects
In many examples I have seen online, AsyncTask is extended, the constructor is overriden,
From the few examples I have seen around the net, gl_FragData[0] is assumed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.