Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten Jensen 41 posts 104 karma points
    Jul 15, 2014 @ 17:07
    Morten Jensen
    0

    Web API default routes missing?

    I have setuped a small Web API test and it seems that the Umbraco implementation of Web API is disableing the default routes.

    The code below should react to /umbraco/api/skills (default Web API behavior), but only responds to /umbraco/api/skills/getallskills

        public class SkillsController : UmbracoApiController
        {
            public IEnumerable< IPublishedContent > GetAllSkills()
            {
                IEnumerable<IPublishedContent> skills = Umbraco.TypedContent(1067).Descendants();
                return skills;
            }
        }

     

    I cant seem to find any documentaion on the default web API routes?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies