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

    Show / Hide Table of Contents

    Class Api14

    Base class for v14 Dynamic WebAPI files. Will provide the ServiceKit14 on property Kit. This contains all the popular services used in v14, so that your code can be lighter.

    Inheritance
    System.Object
    System.Web.Http.ApiController
    DotNetNuke.Web.Api.DnnApiController
    ToSic.Sxc.Dnn.WebApi.DnnApiControllerWithFixes<ToSic.Eav.WebApi.DummyControllerReal>
    ToSic.Sxc.WebApi.SxcApiControllerBase<ToSic.Eav.WebApi.DummyControllerReal>
    ToSic.Sxc.WebApi.DynamicApiController
    ApiCoreShim
    Api14<System.Object, ServiceKit14>
    Api14
    Implements
    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    IDynamicWebApi
    IHasCodeLog
    Inherited Members
    Api14<Object, ServiceKit14>.App
    Api14<Object, ServiceKit14>.Data
    Api14<Object, ServiceKit14>.AsDynamic(String, String)
    Api14<Object, ServiceKit14>.AsDynamic(IEntity)
    Api14<Object, ServiceKit14>.AsDynamic(Object)
    Api14<Object, ServiceKit14>.AsDynamic(Object[])
    Api14<Object, ServiceKit14>.AsEntity(Object)
    Api14<Object, ServiceKit14>.AsList(Object)
    Api14<Object, ServiceKit14>.Convert
    Api14<Object, ServiceKit14>.CreateSource<T>(IDataSource, ILookUpEngine)
    Api14<Object, ServiceKit14>.CreateSource<T>(IDataStream)
    Api14<Object, ServiceKit14>.Content
    Api14<Object, ServiceKit14>.Header
    Api14<Object, ServiceKit14>.AsAdam(IDynamicEntity, String)
    Api14<Object, ServiceKit14>.AsAdam(IEntity, String)
    Api14<Object, ServiceKit14>.SaveInAdam(String, Stream, String, String, Nullable<Guid>, String, String)
    Api14<Object, ServiceKit14>.Link
    Api14<Object, ServiceKit14>.Edit
    Api14<Object, ServiceKit14>.CmsContext
    Api14<Object, ServiceKit14>.Resources
    Api14<Object, ServiceKit14>.Settings
    Api14<Object, ServiceKit14>.Kit
    ApiCoreShim.File(String, Nullable<Boolean>, String, String, String, Object)
    ApiCoreShim.Ok()
    ApiCoreShim.Ok(Object)
    ApiCoreShim.NoContent()
    ApiCoreShim.Redirect(String)
    ApiCoreShim.RedirectPermanent(String)
    ApiCoreShim.StatusCode(Int32)
    ApiCoreShim.StatusCode(Int32, Object)
    ApiCoreShim.Unauthorized()
    ApiCoreShim.Unauthorized(Object)
    ApiCoreShim.NotFound()
    ApiCoreShim.NotFound(Object)
    ApiCoreShim.BadRequest()
    ApiCoreShim.Conflict()
    ApiCoreShim.Conflict(Object)
    ApiCoreShim.Accepted()
    ApiCoreShim.Forbid()
    Namespace: Custom.Hybrid
    Assembly: ToSic.Sxc.Dnn.WebApi.dll
    Syntax
    [PublicApi]
    public abstract class Api14 : Api14<dynamic, ServiceKit14>, IHttpController, IDisposable, IDynamicCodeBeforeV10, IDynamicCode<dynamic, ServiceKit14>, IDynamicCodeKit<ServiceKit14>, IDynamicCode12, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, ICompatibleToCode12, IDynamicWebApi, IHasDynamicCodeRoot, IHasCodeLog
    Remarks

    Important: The property Convert which exited on Razor12 was removed. use Kit.Convert instead.

    Constructors

    | Improve this Doc View Source

    Api14()

    Declaration
    protected Api14()
    | Improve this Doc View Source

    Api14(String)

    Declaration
    protected Api14(string logSuffix)
    Parameters
    Type Name Description
    System.String logSuffix

    Properties

    | Improve this Doc View Source

    Log

    The logger for the current Razor / WebApi

    Declaration
    public ICodeLog Log { get; }
    Property Value
    Type Description
    ICodeLog

    Implements

    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    IDynamicWebApi
    IHasCodeLog
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX