Files
Umbraco-CMS/src/Umbraco.Web.Common/Controllers/UmbracoApiController.cs
Bjarke Berg 87c7347900 V14: Reintroduce umbraco api controller as obsolete (#16263)
* Revert "v14: Remove mentions of UmbracoApiController (#15863)"

This reverts commit 30e2dea57a.

* Obsolete UmbracoApiController

* Added a few more obsoletion messages

* Removed some of the reintroduced stuff again

* Add obsoletion to FrontEndRoutes controller

---------

Co-authored-by: kjac <kja@umbraco.dk>
2024-05-13 08:28:42 +02:00

27 lines
920 B
C#

using Umbraco.Cms.Core.Composing;
namespace Umbraco.Cms.Web.Common.Controllers;
/// <summary>
/// Provides a base class for auto-routed Umbraco API controllers.
/// </summary>
[Obsolete("""
WARNING
The UmbracoAPIController does not work exactly as in previous versions of Umbraco because serialization is now done using System.Text.Json.
Please verify your API responses still work as expect.
We recommend using regular ASP.NET Core ApiControllers for your APIs so that OpenAPI specifications are generated.
Read more about this here: https://learn.microsoft.com/en-us/aspnet/core/web-api/
UmbracoAPIController will be removed in Umbraco 15.
""")]
public abstract class UmbracoApiController : UmbracoApiControllerBase, IDiscoverable
{
/// <summary>
/// Initializes a new instance of the <see cref="UmbracoApiController" /> class.
/// </summary>
protected UmbracoApiController()
{
}
}