Copied to clipboard

Flag this post as spam?

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


  • paritoshtripathi 1 post 21 karma points
    May 19, 2022 @ 12:58
    paritoshtripathi
    0

    Is there any documentation on how to build a headless implementation using GraphQL for Umbraco 9

    I'm using the open source Umbraco CMS 9 version and I need to build a headless implementation. I have gone through many blogs but couldn't find a straightforward answer on how to build a Headless client for fetching data from Umbraco via RESTApi and / or GraphQL. I found a Umbraco8 github project using GraphQL but that is on .net 4.6 I want to build it on .Net 5.

    Any guidance and help would be greatly appreciated.

  • Mark Drake 134 posts 458 karma points c-trib
    May 19, 2022 @ 22:36
    Mark Drake
    0

    Nikolaj Brask-Nielsen wrote something on this very topic.

    3 Ways to go headless with Umbraco

    In my projects, I have taken the first approach. But instead of writing it all yourself, you can take advantage of the nuget package from Vertica A/S. I also recommend you look at doing the hybrid RenderController.

    Essentially, I'm serving my regular web page to anyone requesting it through a browser. If that request asks specifically for JSON, I render data instead of the template.

    I'm looking forward to trying Nikcio.UHeadless for the simple fact it uses GraphQL. Beware of the lengthy todo, as there may be something you need that's not implemented yet. I'm sure they would welcome a PR, though!

    Please be sure to come back and update us all if you find a solution that works for you. I'm sure it will help others!

  • Ayalatee 5 posts 75 karma points
    Dec 24, 2023 @ 09:16
    Ayalatee
    0

    Hi Mark, did you implement API with Vartica Umbarco Headless Framework?

    can you share your code or copy here your controllers?

    I don't find any examples for it, and controller functions don't work.

    thanks

    Ayala

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    May 20, 2022 @ 07:00
    Dave Woestenborghs
    0

    Hi,

    Maybe this package can help you out : https://github.com/vertica-as/Vertica.Umbraco.Headless

    It generates a rest api.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft