Copied to clipboard

Flag this post as spam?

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

  • Linx 74 posts 204 karma points
    Oct 18, 2021 @ 18:44

    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 1554 posts 6876 karma points MVP 5x c-trib
    Oct 18, 2021 @ 20:26

    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.



Please Sign in or register to post replies

Write your reply to: