mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
docs(dir): 📄 404s should never be returned from collection endpoints
This commit is contained in:
parent
2510a7e426
commit
0cce314ede
7 changed files with 0 additions and 7 deletions
|
|
@ -25,7 +25,6 @@ public LanguagesController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The languages targeted by FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetLanguages.LanguageVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetLanguages.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public LicensesController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The licenses applied to FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetLicenses.LicenseVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetLicenses.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ public ListsController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<ListVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetLists.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public MaintainersController(IMemoryCache cache, IMediator mediator) : base(cach
|
|||
/// <returns>The maintainers of FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetMaintainers.MaintainerVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetMaintainers.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public SoftwareController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The software that subscribes to FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetSoftware.SoftwareVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetSoftware.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public SyntaxesController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The syntaxes of FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetSyntaxes.SyntaxVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetSyntaxes.Query(), cancellationToken));
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ public TagsController(IMemoryCache cache, IMediator mediator) : base(cache)
|
|||
/// <returns>The tags of FilterLists.</returns>
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<GetTags.TagVm>), StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> Get(CancellationToken cancellationToken)
|
||||
{
|
||||
return await CacheGetOrCreateAsync(() => _mediator.Send(new GetTags.Query(), cancellationToken));
|
||||
|
|
|
|||
Loading…
Reference in a new issue