• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API
Search Results for

    Show / Hide Table of Contents

    Class Api12

    Base Class for modern Api Controllers in Dnn

    Class Custom.Dnn.Api12 for Dnn ☢️

    This is the Dnn specific base class. It's the very same as Custom.Hybrid.Api12 except for the additional Dnn Property.

    Because of this, the documentation here only shows Dnn - for all other properties go to Custom.Hybrid.Api12

    Tip

    If you don't need these special properties, we strongly suggest to move to the Hybrid implementation.

    Inheritance
    object
    ApiController
    DnnApiController
    DnnApiControllerWithFixes
    SxcApiControllerBase
    DynamicApiController
    Api12
    Api12
    Implements
    IDynamicCode12
    IHasCodeLog
    IDynamicWebApi
    IDnnDynamicCode
    IDynamicCode
    IHasLog
    IHasDnn
    Inherited Members
    Api12.Log
    Api12.GetService<TService>()
    Api12.Content
    Api12.Header
    Api12.App
    Api12.Data
    Api12.Link
    Api12.Edit
    Api12.CmsContext
    Api12.Resources
    Api12.Settings
    Api12.AsDynamic(string, string)
    Api12.AsDynamic(IEntity)
    Api12.AsDynamic(object)
    Api12.AsDynamic(params object[])
    Api12.AsEntity(object)
    Api12.AsList(object)
    Api12.Convert
    Api12.CreateSource<T>(IDataStream)
    Api12.CreateSource<T>(IDataSource, ILookUpEngine)
    Api12.AsAdam(ICanBeEntity, string)
    Api12.SaveInAdam(string, Stream, string, string, Guid?, string, string)
    Api12.CreateInstance(string, string, string, string, bool)
    Api12.File(string, bool?, string, string, string, object)
    Api12.Ok()
    Api12.Ok(object)
    Api12.NoContent()
    Api12.Redirect(string)
    Api12.RedirectPermanent(string)
    Api12.StatusCode(int)
    Api12.StatusCode(int, object)
    Api12.Unauthorized()
    Api12.Unauthorized(object)
    Api12.NotFound()
    Api12.NotFound(object)
    Api12.BadRequest()
    Api12.Conflict()
    Api12.Conflict(object)
    Api12.Accepted()
    Api12.Forbid()
    Namespace: Custom.Dnn
    Assembly: ToSic.Sxc.Dnn.WebApi.dll
    Syntax
    [PublicApi_Stable_ForUseInYourCode("This is the official base class for v12+")]
    public abstract class Api12 : Api12, IDynamicCode12, IHasCodeLog, IDynamicWebApi, IDnnDynamicCode, IDynamicCode, IHasLog, IHasDnn

    Constructors

    | Improve this Doc View Source

    Api12()

    Declaration
    protected Api12()
    | Improve this Doc View Source

    Api12(string)

    Declaration
    protected Api12(string logSuffix)
    Parameters
    Type Name Description
    string logSuffix

    Properties

    | Improve this Doc View Source

    Dnn

    The DNN context. Has various objects to access the Dnn Page, etc.

    Declaration
    public IDnnContext Dnn { get; }
    Property Value
    Type Description
    IDnnContext

    Implements

    IDynamicCode12
    IHasCodeLog
    IDynamicWebApi
    IDnnDynamicCode
    IDynamicCode
    IHasLog
    IHasDnn
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX