Copied to clipboard

Flag this post as spam?

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


  • Ibrahim Ahmed Badr 4 posts 24 karma points
    Sep 30, 2021 @ 18:25
    Ibrahim Ahmed Badr
    0

    Umbraco Api RESTful service Update

    How do I add new api service to my umbraco project is it necessary to remove old dll and add updated one or there's another way to do so

  • Dennis 75 posts 397 karma points MVP
    Oct 01, 2021 @ 15:07
    Dennis
    0

    Hi, I'm not entirely sure what you are looking for, but there are multiple ways to add api controllers to your project. If you create your controller class inside your umbraco project, then yes, you have to create and deploy a new build.

    You can also create your api controller in a separate project. You'd need to create a class library for .NET Framework and reference the Umbraco.Web nuGet package to get access to the umbraco controller base classes. You can build this library into a dll and deploy this to your bin folder or reference the class library in your umbraco project. If you deploy the dll directly, you still have to reboot the website before it registers your new controller.

Please Sign in or register to post replies

Write your reply to:

Draft