Web Api module routing issue (The page you are looking for does not exist)

Topics: Core, Customizing Orchard
Feb 27, 2013 at 9:35 AM
I need a webapi module to serve data to my pages in Orchard.
To get to know how to do it, I created a new WebApi project in VS 2012.
Running my WebApi project in VS I can access the endpoint via
http://localhost:24296/api/values Then I copied it to the Modules folder in Orchard, added a module.txt file and enabled it via the admin pages.
So far so good.
Running Orchard now I'm not able to access the end point via <orchardurl>/api/values
It displays "The page you are looking for does not exist"

Obviously something is wrong with my route, but how do I find out what the URL is?

It is a clean out-of-the-box WebApi project, no customizations.
Feb 27, 2013 at 2:05 PM
Perhaps retry each step manually from within an Orchard module instead of copying your vanilla WebApi project and follow these steps: http://www.sebastienros.com/web-api-makes-it-in-orchard

If you get that to work, it's just a matter of finding the differences.
Feb 27, 2013 at 2:53 PM
hi JeanPaulSmit,

There is a modules for WebAPI,
would probably be useful for you.
Mar 1, 2013 at 6:51 AM
You guys rock!
Is there a list of these handy blog posts somewhere?
Mar 2, 2013 at 9:13 AM
The http://orchardproject.net homepage contains an archive of all Orchard related posts ever found.