Copied to clipboard

Flag this post as spam?

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


  • Rihab 68 posts 269 karma points
    Feb 18, 2019 @ 10:20
    Rihab
    0

    Adding server-side data to a property editor shows 404 error

    hi everyone,

    i'm trying to do the exact thing in this doucumentatio Adding server-side data

    ........but it's showing 404 error when i try to access

    /PersonApi/GetAll

    can you help me, guys?

  • Chris Evans 97 posts 204 karma points c-trib
    Feb 18, 2019 @ 23:08
    Chris Evans
    100

    Your URL should probably look more like this:

    /umbraco/backoffice/My/PersonApi/GetAll
    

    You need to include the "/umbraco/backoffice/" prefix for all controllers of this kind.

    The "My" is from the PluginController attribute defined like this:

    [Umbraco.Web.Mvc.PluginController("My")]
    

    So if yours has a different value you can update the URL accordingly.

    Hope this helps!

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft