[Umbraco.Web.Mvc.PluginController("Beers")]
public class BeerApiController : UmbracoAuthorizedJsonController
{
public int GetBeerById(int id)
{
var db = UmbracoContext.Application.DatabaseContext.Database;
...
}
}
And I'm trying to perform a GET to this url: (http://localhost:3556/umbraco/beers/BeerApi/GetBeerById/1) ... but this is the output.
Actually, it doesn't fly, but says 404 in red letter on fiddler. Am I missing something?
GET/POST to UmbracoAuthorizedJsonController
I have this lovely controller:
And I'm trying to perform a GET to this url: (http://localhost:3556/umbraco/beers/BeerApi/GetBeerById/1) ... but this is the output.
Actually, it doesn't fly, but says 404 in red letter on fiddler. Am I missing something?
Thanks, João.
Ok, found an older post from Lee, that pointed to this change
Doing a GET to http://localhost:3556/umbraco/backoffice/beers/BeerApi/GetBeerById/1 I get an yellow 401.
Thanks!
is working on a reply...