UmbracoApiController 404 error when posting body with request, works fine without body
Hi,
I've managed to get a HttpPost call working from a javascript application, however the moment I add pararmeters to the method and fetch request it always returns a failed response.
using System;
using System.Collections.Generic;
using System.Web.Mvc;
using System.Web.Script.Serialization;
using Umbraco.Core;
using Umbraco.Core.Composing;
using Umbraco.Core.Models;
using Umbraco.Core.Services;
using Umbraco.Web.WebApi;
using System.Web.Http;
public class CardListController : UmbracoApiController
{
public CardListController(){};
[System.Web.Http.HttpPost]
public JsonResult LoadMoreCards([FromBody]string page)
{
....
}
UmbracoApiController 404 error when posting body with request, works fine without body
Hi,
I've managed to get a HttpPost call working from a javascript application, however the moment I add pararmeters to the method and fetch request it always returns a failed response.
In my javascript code:
Can anyone see where this could be going wrong?
is working on a reply...