Show / Hide Table of Contents

Class UrlShortingAdminController

Inheritance
object
CmsKitProAdminController
UrlShortingAdminController
Implements
IUrlShortingAdminAppService
ICrudAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput, CreateShortenedUrlDto, UpdateShortenedUrlDto>
IReadOnlyAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput>
IApplicationService
IRemoteService
ICreateUpdateAppService<ShortenedUrlDto, Guid, CreateShortenedUrlDto, UpdateShortenedUrlDto>
ICreateAppService<ShortenedUrlDto, CreateShortenedUrlDto>
IUpdateAppService<ShortenedUrlDto, Guid, UpdateShortenedUrlDto>
IDeleteAppService<Guid>
Namespace: Volo.CmsKit.Admin.UrlShorting
Assembly: Volo.CmsKit.Pro.Admin.HttpApi.dll
Syntax
[Area("cms-kit-pro-admin")]
[Route("api/cms-kit-admin/url-shorting")]
[Authorize("CmsKit.UrlShorting")]
public class UrlShortingAdminController : CmsKitProAdminController, IUrlShortingAdminAppService, ICrudAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput, CreateShortenedUrlDto, UpdateShortenedUrlDto>, IReadOnlyAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput>, IApplicationService, IRemoteService, ICreateUpdateAppService<ShortenedUrlDto, Guid, CreateShortenedUrlDto, UpdateShortenedUrlDto>, ICreateAppService<ShortenedUrlDto, CreateShortenedUrlDto>, IUpdateAppService<ShortenedUrlDto, Guid, UpdateShortenedUrlDto>, IDeleteAppService<Guid>

Constructors

UrlShortingAdminController(IUrlShortingAdminAppService)

Declaration
public UrlShortingAdminController(IUrlShortingAdminAppService urlShortingAdminAppService)
Parameters
Type Name Description
IUrlShortingAdminAppService urlShortingAdminAppService

Methods

CreateAsync(CreateShortenedUrlDto)

Declaration
[HttpPost]
[Authorize("CmsKit.UrlShorting.Create")]
public Task<ShortenedUrlDto> CreateAsync(CreateShortenedUrlDto input)
Parameters
Type Name Description
CreateShortenedUrlDto input
Returns
Type Description
Task<ShortenedUrlDto>

DeleteAsync(Guid)

Declaration
[HttpDelete]
[Route("{id}")]
[Authorize("CmsKit.UrlShorting.Delete")]
public Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAsync(Guid)

Declaration
[HttpGet]
[Route("{id}")]
public Task<ShortenedUrlDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<ShortenedUrlDto>

GetListAsync(GetShortenedUrlListInput)

Declaration
[HttpGet]
public Task<PagedResultDto<ShortenedUrlDto>> GetListAsync(GetShortenedUrlListInput input)
Parameters
Type Name Description
GetShortenedUrlListInput input
Returns
Type Description
Task<PagedResultDto<ShortenedUrlDto>>

UpdateAsync(Guid, UpdateShortenedUrlDto)

Declaration
[HttpPut]
[Route("{id}")]
[Authorize("CmsKit.UrlShorting.Update")]
public Task<ShortenedUrlDto> UpdateAsync(Guid id, UpdateShortenedUrlDto input)
Parameters
Type Name Description
Guid id
UpdateShortenedUrlDto input
Returns
Type Description
Task<ShortenedUrlDto>

Implements

IUrlShortingAdminAppService
Volo.Abp.Application.Services.ICrudAppService<,,,,,>
Volo.Abp.Application.Services.IReadOnlyAppService<,,,>
Volo.Abp.Application.Services.IApplicationService
Volo.Abp.IRemoteService
Volo.Abp.Application.Services.ICreateUpdateAppService<,,,>
Volo.Abp.Application.Services.ICreateAppService<,>
Volo.Abp.Application.Services.IUpdateAppService<,,>
Volo.Abp.Application.Services.IDeleteAppService<>
In this article
Back to top Powered by Volosoft