Table of Contents

Class AliasController

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

Constructors

AliasController(IAliasRepository, ITenantRepository, ISyncManager, ILogManager, ITenantManager)

public AliasController(IAliasRepository aliases, ITenantRepository tenants, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)

Parameters

aliases IAliasRepository
tenants ITenantRepository
syncManager ISyncManager
logger ILogManager
tenantManager ITenantManager

Methods

Delete(int)

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

Parameters

id int

Get()

[HttpGet]
[Authorize(Roles = "Administrators")]
public IEnumerable<Alias> Get()

Returns

IEnumerable<Alias>

Get(int)

[HttpGet("{id}")]
[Authorize(Roles = "Host Users")]
public Alias Get(int id)

Parameters

id int

Returns

Alias

Post(Alias)

[HttpPost]
[Authorize(Roles = "Host Users")]
public Alias Post(Alias alias)

Parameters

alias Alias

Returns

Alias

Put(int, Alias)

[HttpPut("{id}")]
[Authorize(Roles = "Host Users")]
public Alias Put(int id, Alias alias)

Parameters

id int
alias Alias

Returns

Alias