Copied to clipboard

Flag this post as spam?

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


  • ALEXANDRE VASCONCELLOS 6 posts 105 karma points
    Feb 09, 2017 @ 00:39
    ALEXANDRE VASCONCELLOS
    0

    AngularJS with Umbraco

    Hi. Let me explain what I want to do. I have an AngularJS application. I want to make API calls to Umbraco back-office to get content from it. For example I want to get a content by its ID and show it in the AngularJS application. How can I do this? I know there is a Rest API developed by Umbraco but for using it I have to authenticate with a back-office user. I need to access the back-office without logging in because all I want is to get some content. What should I do? Thanks.

  • Kevin Jump 1867 posts 11859 karma points MVP 4x c-trib
    Feb 09, 2017 @ 10:48
    Kevin Jump
    100

    Hi,

    I think you might need to write your own UmbracoApiController. then you can controll what you want back based on the call.

    you can then control what come back - you could add some checks, just to make sure only the content nodes you allow come back.

    When you have a controller - you can then call it from angular to get the content object / data you need.

  • ALEXANDRE VASCONCELLOS 6 posts 105 karma points
    Feb 11, 2017 @ 02:14
    ALEXANDRE VASCONCELLOS
    0

    Thanks Kevin.

  • Son Pham 31 posts 72 karma points
    May 30, 2017 @ 11:13
    Son Pham
    0

    Hi Kevin

    How can we pass an authentication from Angular to our own UmbracoApiController?

    Can you please provide some example?

    Thanks

  • Alan Falloon 12 posts 142 karma points
    Aug 21, 2018 @ 23:39
    Alan Falloon
    0

    Did you ever find a solution?

  • Marcio Goularte 356 posts 1248 karma points
    Aug 22, 2018 @ 15:20
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies