Copied to clipboard

Flag this post as spam?

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


  • antao 81 posts 371 karma points
    Mar 05, 2014 @ 21:38
    antao
    0

    GET/POST to UmbracoAuthorizedJsonController

    I have this lovely controller:

    [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?

    Thanks, João.

  • antao 81 posts 371 karma points
    Mar 05, 2014 @ 21:47
    antao
    101

    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!

Please Sign in or register to post replies

Write your reply to:

Draft