Table of Contents

Class PageController

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

Constructors

PageController(IPageRepository, IModuleRepository, IPageModuleRepository, IPermissionRepository, ISettingRepository, IUserPermissions, IUrlMappingRepository, ITenantManager, ISyncManager, ILogManager)

public PageController(IPageRepository pages, IModuleRepository modules, IPageModuleRepository pageModules, IPermissionRepository permissionRepository, ISettingRepository settings, IUserPermissions userPermissions, IUrlMappingRepository urlMappings, ITenantManager tenantManager, ISyncManager syncManager, ILogManager logger)

Parameters

pages IPageRepository
modules IModuleRepository
pageModules IPageModuleRepository
permissionRepository IPermissionRepository
settings ISettingRepository
userPermissions IUserPermissions
urlMappings IUrlMappingRepository
tenantManager ITenantManager
syncManager ISyncManager
logger ILogManager

Methods

Delete(int)

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

Parameters

id int

Get(int)

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

Parameters

id int

Returns

Page

Get(string)

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

Parameters

siteid string

Returns

IEnumerable<Page>

Get(string, int)

[HttpGet("path/{siteid}")]
public Page Get(string path, int siteid)

Parameters

path string
siteid int

Returns

Page

Post(Page)

[HttpPost]
[Authorize(Roles = "Registered Users")]
public Page Post(Page page)

Parameters

page Page

Returns

Page

Post(int, string)

[HttpPost("{id}")]
[Authorize(Roles = "Registered Users")]
public Page Post(int id, string userid)

Parameters

id int
userid string

Returns

Page

Put(int, Page)

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

Parameters

id int
page Page

Returns

Page

Put(int, int, int?)

[HttpPut]
[Authorize(Roles = "Registered Users")]
public void Put(int siteid, int pageid, int? parentid)

Parameters

siteid int
pageid int
parentid int?