Copied to clipboard

Flag this post as spam?

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


  • Linx 98 posts 259 karma points
    Oct 18, 2021 @ 18:44
    Linx
    0

    How to separate WebApi into a separate CL?

    I would like to add a new Class Library and have all the Web API stuff sit inside this project for Umbraco 8 custom section calls.

    How could I do this as I understand there a lot of references from Umbraco 8 that need to be included?

    Thank you

  • Nik 1625 posts 7295 karma points MVP 8x c-trib
    Oct 18, 2021 @ 20:26
    Nik
    1

    Hi Linx,

    This is completely possible, in your new Class Library project you'll need to include a reference to UmbracoCms.Core and UmbracoCms.Web and you should be able to create all your controllers etc quite easily. I do this on a regular basis with API/Surface/RenderMvcControllers in order to seperate them from our core site project.

    Thanks

    Nik

  • 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