Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
I cant seem to find any documentaion on the default web API routes?
is working on a reply...