Copied to clipboard

Flag this post as spam?

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


  • Nekesh 13 posts 103 karma points
    May 19, 2016 @ 12:52
    Nekesh
    0

    Is there any example for creating Umbraco Rest Api?

    I want to create a MVC Umbraco Rest Api using package "Install-Package UmbracoCms.RestApi" without installing UmbracoCms package.

    I want to host umbraco service using class Umbraco.Web.WebApi.UmbracoApiController.

    Is there any example out for this?

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    May 22, 2016 @ 09:30
    Alex Skrypnyk
    100

    Hi Nekesh,

    You can't use UmbracoCms.RestApi without UmbracoCms definitely.

    If you need to use 'UmbracoApiController' - just install UmbracoCms, this class there out of the box.

    Cheers, Alex

  • Marcin Zajkowski 112 posts 585 karma points MVP 7x c-trib
    May 22, 2016 @ 23:23
    Marcin Zajkowski
    0

    I wrote an article in 24days.in/umbraco series last year and included a simple proof on concept using API in current version.

    Feel free to check it and use / adopt into your project: http://24days.in/umbraco/2015/umbraco-rest-api/

    Playground with code is on my GitHub: https://github.com/mzajkowski/umbraco-rest-api-playground

    Let me know if it helped you :)

  • Nekesh 13 posts 103 karma points
    May 26, 2016 @ 09:34
    Nekesh
    0

    Alex.. UmbracoCms worked for me.

    However, If we are installing CMS then how can we create a standalone Umbraco API just like REST services?

    Any help will be helpful.

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    May 26, 2016 @ 12:41
    Alex Skrypnyk
    0

    Hi Nekesh,

    Do you mean you don't need Umbraco context? Umbraco CMS? Only REST ?

    I didn't understand why you can't use usual WebAPI if you don't need Umbraco )

    Thanks, Alex

Please Sign in or register to post replies

Write your reply to:

Draft