docs(dir): 📄 404s should never be returned from collection endpoints

This commit is contained in:
Collin M. Barrett 2021-11-02 15:55:27 -05:00
parent 2510a7e426
commit 0cce314ede
7 changed files with 0 additions and 7 deletions

View file

@ -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));

View file

@ -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));

View file

@ -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));

View file

@ -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));

View file

@ -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));

View file

@ -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));

View file

@ -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));