Class UmbracoAuthorizedJsonController
An abstract API controller that only supports JSON and all requests must contain the correct csrf header
Inheritance
System.Object
System.Web.Http.ApiController
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public abstract class UmbracoAuthorizedJsonController : UmbracoAuthorizedApiController, IHttpController, IDisposable, IDiscoverable
Remarks
Inheriting from this controller means that ALL of your methods are JSON methods that are called by Angular, methods that are not called by Angular or don't contain a valid csrf header will NOT work.
Constructors
UmbracoAuthorizedJsonController()
Declaration
protected UmbracoAuthorizedJsonController()
UmbracoAuthorizedJsonController(UmbracoContext)
Declaration
protected UmbracoAuthorizedJsonController(UmbracoContext umbracoContext)
Parameters
Type | Name | Description |
---|---|---|
UmbracoContext | umbracoContext |
UmbracoAuthorizedJsonController(UmbracoContext, UmbracoHelper, BackOfficeUserManager<BackOfficeIdentityUser>)
Declaration
protected UmbracoAuthorizedJsonController(UmbracoContext umbracoContext, UmbracoHelper umbracoHelper, BackOfficeUserManager<BackOfficeIdentityUser> backOfficeUserManager)
Parameters
Type | Name | Description |
---|---|---|
UmbracoContext | umbracoContext | |
UmbracoHelper | umbracoHelper | |
BackOfficeUserManager<BackOfficeIdentityUser> | backOfficeUserManager |