Table of Contents

Class UrlMappingController

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

Constructors

UrlMappingController(IUrlMappingRepository, ISyncManager, ILogManager, ITenantManager)

public UrlMappingController(IUrlMappingRepository urlMappings, ISyncManager syncManager, ILogManager logger, ITenantManager tenantManager)

Parameters

urlMappings IUrlMappingRepository
syncManager ISyncManager
logger ILogManager
tenantManager ITenantManager

Methods

Delete(int)

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

Parameters

id int

Get(int)

[HttpGet("{id}")]
[Authorize(Roles = "Administrators")]
public UrlMapping Get(int id)

Parameters

id int

Returns

UrlMapping

Get(int, string)

[HttpGet("url/{siteid}")]
public UrlMapping Get(int siteid, string url)

Parameters

siteid int
url string

Returns

UrlMapping

Get(string, string)

[HttpGet]
[Authorize(Roles = "Administrators")]
public IEnumerable<UrlMapping> Get(string siteid, string ismapped)

Parameters

siteid string
ismapped string

Returns

IEnumerable<UrlMapping>

Post(UrlMapping)

[HttpPost]
[Authorize(Roles = "Administrators")]
public UrlMapping Post(UrlMapping urlMapping)

Parameters

urlMapping UrlMapping

Returns

UrlMapping

Put(int, UrlMapping)

[HttpPut("{id}")]
[Authorize(Roles = "Administrators")]
public UrlMapping Put(int id, UrlMapping urlMapping)

Parameters

id int
urlMapping UrlMapping

Returns

UrlMapping