Copied to clipboard

Flag this post as spam?

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


  • Jojo V 6 posts 76 karma points
    1 week ago
    Jojo V
    0

    Rest API for FE

    Hi,

    I would like make frontend in Angular ( 4/6 ) or some other FE JS Framework. For this solutions I need frontend Rest Api in Umbraco.

    Does Umbraco 8 Rest API for frontend unauthorized users?

  • Laura Weatherhead 23 posts 149 karma points MVP c-trib
    1 week ago
    Laura Weatherhead
    0

    Hi Jojo!

    You can create API endpoints in Umbraco by extending the UmbracoApiController base

    There is more information on how this would work here: https://our.umbraco.com/documentation/Reference/Routing/WebApi/

    Is this the sort of thing you had in mind?

    Cheers, Laura

  • Jojo V 6 posts 76 karma points
    1 week ago
    Jojo V
    0

    I read this article but this is not for umbraco 8:

    "This article has not yet been verified against Umbraco 8."

    Ok. Can you show me how I get content page for example? I try it but I have faild. THX

  • Laura Weatherhead 23 posts 149 karma points MVP c-trib
    1 week ago
    Laura Weatherhead
    0

    Hey Jojo - could you post some of the code/examples of what you have tried?

    Hopefully that will help me understand where you're at and not cover stuff you already know :-)

  • Jojo V 6 posts 76 karma points
    1 week ago
    Jojo V
    0

    I thought, you could show me a complete code for the Rest API controller through which I will get content a contact page after the api call via the URL /api/content/get/contact ( For example ).

  • Magnus Eriksson 80 posts 153 karma points
    1 week ago
    Magnus Eriksson
    0

    With UmbracoApiController you build your own REST API:s to consume, is that what you want?

    Or are you looking for ready to use Content REST API:s? If so, then I think it's Umbraco Headless you're after. Umbraco Headless is supposed to be released soon: https://umbraco.com/products/umbraco-headless/

    Regards, Magnus

  • Jojo V 6 posts 76 karma points
    1 week ago
    Jojo V
    0

    Yes, second answer is correct. I looking for "ready to use Content REST API" :)

    Or exist another solutions how I can build Angular FE and get content from umbraco?

    ( I'm a beginner in umbraco )

  • Magnus Eriksson 80 posts 153 karma points
    1 week ago
    Magnus Eriksson
    0

    I think Umbraco Headless is what you want then. I haven't watched it yet but Umbraco HQ yesterday released a talk about headless from Codegarden: https://www.youtube.com/watch?v=kO55Bpo8_zg

    Regards, Magnus

  • Jojo V 6 posts 76 karma points
    1 week ago
    Jojo V
    0

    Umbraco Headless look fine but release date not yet known and I would like to make Angular app at this time :/

Please Sign in or register to post replies

Write your reply to:

Draft