Copied to clipboard

Flag this post as spam?

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


  • Morten Devold 10 posts 79 karma points
    Jan 13, 2017 @ 08:50
    Morten Devold
    0

    Best way to set up a separate API project extending UmbracoApiController

    What is the best way to set up a separate Umbraco web api project in my solution? I want to be able to extend UmbracpApiController and publish just the updated API to my Umbraco installation as a .dll. This has probably been asked before, so if there are any good answers, a pointer in the right direction is much appreciated :)

  • Marc Goodson 2138 posts 14321 karma points MVP 8x c-trib
    Jan 16, 2017 @ 09:25
    Marc Goodson
    1

    Hi Morten

    If you add a new Class Library project to your solution, you can then use Nuget to add only the Umbraco core dlls for the version of Umbraco you are using to your new project.

    https://www.nuget.org/packages/UmbracoCms.Core/

    This enables you to extend/inherit UmbracoApiController from within your class library.

    Your class library project will build to a separate dll.

    You can reference the project from your website project that includes the main Umbraco install.

    regards

    Marc

  • Morten Devold 10 posts 79 karma points
    Jan 17, 2017 @ 12:28
    Morten Devold
    0

    Thanks Marc - very clear and to the point! :)

Please Sign in or register to post replies

Write your reply to:

Draft