|
|
@ -561,7 +561,7 @@ namespace Squidex.Areas.Api.Controllers.Contents |
|
|
[ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] |
|
|
[ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] |
|
|
[ApiPermissionOrAnonymous(Permissions.AppContentsChangeStatusOwn)] |
|
|
[ApiPermissionOrAnonymous(Permissions.AppContentsChangeStatusOwn)] |
|
|
[ApiCosts(1)] |
|
|
[ApiCosts(1)] |
|
|
public async Task<IActionResult> DeleteContentStatus(string app, string schema, DomainId id) |
|
|
public async Task<IActionResult> DeleteContentSchedule(string app, string schema, DomainId id) |
|
|
{ |
|
|
{ |
|
|
var command = new CancelContentSchedule { ContentId = id }; |
|
|
var command = new CancelContentSchedule { ContentId = id }; |
|
|
|
|
|
|
|
|
@ -613,7 +613,7 @@ namespace Squidex.Areas.Api.Controllers.Contents |
|
|
[HttpDelete] |
|
|
[HttpDelete] |
|
|
[Route("content/{app}/{schema}/{id}/draft/")] |
|
|
[Route("content/{app}/{schema}/{id}/draft/")] |
|
|
[ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] |
|
|
[ProducesResponseType(typeof(ContentsDto), StatusCodes.Status200OK)] |
|
|
[ApiPermissionOrAnonymous(Permissions.AppContentsDeleteOwn)] |
|
|
[ApiPermissionOrAnonymous(Permissions.AppContentsVersionDeleteOwn)] |
|
|
[ApiCosts(1)] |
|
|
[ApiCosts(1)] |
|
|
public async Task<IActionResult> DeleteVersion(string app, string schema, DomainId id) |
|
|
public async Task<IActionResult> DeleteVersion(string app, string schema, DomainId id) |
|
|
{ |
|
|
{ |
|
|
|