* 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>
27 lines
920 B
C#
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()
|
|
{
|
|
}
|
|
}
|