UmbracoApiController returning 404 error

Hi All,

I’m trying to build a super basic api in umbraco v8.11.1. I’ve followed the documentation here Umbraco WebApi Routing - Our Umbraco

using System.Web.Http;
using Umbraco.Web.WebApi;

namespace ContentPlatform.MyWelfare.Controllers
{
    public class ContentController : UmbracoApiController
    {
        [HttpGet]
        public string GetContent()
        {
            return "This worked!";
        }
    }
}

When testing in postman im pointing at the following endpoint

http://localhost:51397/umbraco/api/content/getcontent

However no matter what i try i’m getting a 404 not found error.

Can anyone give me some advice or guidance on this please?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/105393-umbracoapicontroller-returning-404-error