Table of Contents

Class ModuleController

Namespace
Oqtane.Controllers
Assembly
Oqtane.Server.dll
[Route("api/[controller]")]
public class ModuleController : Controller
Inheritance
ModuleController

Constructors

ModuleController(IModuleRepository, IPageModuleRepository, IPageRepository, IModuleDefinitionRepository, ISettingRepository, IUserPermissions, ITenantManager, ISyncManager, ILogManager)

public ModuleController(IModuleRepository modules, IPageModuleRepository pageModules, IPageRepository pages, IModuleDefinitionRepository moduleDefinitions, ISettingRepository settings, IUserPermissions userPermissions, ITenantManager tenantManager, ISyncManager syncManager, ILogManager logger)

Parameters

modules IModuleRepository
pageModules IPageModuleRepository
pages IPageRepository
moduleDefinitions IModuleDefinitionRepository
settings ISettingRepository
userPermissions IUserPermissions
tenantManager ITenantManager
syncManager ISyncManager
logger ILogManager

Methods

Delete(int)

[HttpDelete("{id}")]
[Authorize(Roles = "Registered Users")]
public void Delete(int id)

Parameters

id int

Export(int, int)

[HttpGet("export")]
[Authorize(Roles = "Registered Users")]
public string Export(int moduleid, int pageid)

Parameters

moduleid int
pageid int

Returns

string

Get(int)

[HttpGet("{id}")]
public Module Get(int id)

Parameters

id int

Returns

Module

Get(string)

[HttpGet]
public IEnumerable<Module> Get(string siteid)

Parameters

siteid string

Returns

IEnumerable<Module>

Import(int, int, string)

[HttpPost("import")]
[Authorize(Roles = "Registered Users")]
public bool Import(int moduleid, int pageid, string content)

Parameters

moduleid int
pageid int
content string

Returns

bool

Post(Module)

[HttpPost]
[Authorize(Roles = "Registered Users")]
public Module Post(Module module)

Parameters

module Module

Returns

Module

Put(int, Module)

[HttpPut("{id}")]
[Authorize(Roles = "Registered Users")]
public Module Put(int id, Module module)

Parameters

id int
module Module

Returns

Module