Class ModelsBuilderDashboardController
API controller for use in the Umbraco back office with Angular resources
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Namespace: Umbraco.Cms.Web.BackOffice.ModelsBuilder
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "SectionAccessSettings")]
public class ModelsBuilderDashboardController : UmbracoAuthorizedJsonController, IUmbracoFeature, IDiscoverable
Remarks
We've created a different controller for the backoffice/angular specifically this is to ensure that the correct CSRF security is adhered to for angular and it also ensures that this controller is not subseptipal to global WebApi formatters being changed since this is always forced to only return Angular JSON Specific formats.
Constructors
View SourceModelsBuilderDashboardController(IOptions<ModelsBuilderSettings>, ModelsGenerator, OutOfDateModelsStatus, ModelsGenerationError)
Declaration
public ModelsBuilderDashboardController(IOptions<ModelsBuilderSettings> config, ModelsGenerator modelsGenerator, OutOfDateModelsStatus outOfDateModels, ModelsGenerationError mbErrors)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
config | |
Models |
modelsGenerator | |
Out |
outOfDateModels | |
Models |
mbErrors |
Methods
View SourceBuildModels()
Declaration
[HttpPost]
public IActionResult BuildModels()
Returns
Type | Description |
---|---|
Microsoft. |
GetDashboard()
Declaration
[HttpGet]
public ActionResult<ModelsBuilderDashboardController.Dashboard> GetDashboard()
Returns
Type | Description |
---|---|
Microsoft. |
GetModelsOutOfDateStatus()
Declaration
[HttpGet]
public ActionResult<ModelsBuilderDashboardController.OutOfDateStatus> GetModelsOutOfDateStatus()
Returns
Type | Description |
---|---|
Microsoft. |