feat(backend): Suche und Filter (Modul 14)

SearchModule mit GET /search?q= über Bienenstände, Völker,
Königinnen, Aufgaben und Honigchargen. Kombinierbare Filter
(Status, Standort, Bienenstand) in den bestehenden List-Endpunkten.
This commit is contained in:
Nick Szaunig committed 2026-08-22 05:29:47 +02:00
1 parent 55b9bc2587
commit 146b56d683
15 files changed
+337 -27

No files matched your search

@@ -1,6 +1,14 @@
import { Body, Controller, Get, Param, Patch, Post } from '@nestjs/common';
import {
Body,
Controller,
Get,
Param,
Patch,
Post,
Query,
} from '@nestjs/common';
import { ApiBearerAuth, ApiTags } from '@nestjs/swagger';
import { Role } from '../../generated/prisma';
import { QueenStatus, Role } from '../../generated/prisma';
import { Roles } from '../auth/decorators/roles.decorator';
import { CurrentUser } from '../auth/decorators/current-user.decorator';
import type { AuthenticatedUser } from '../auth/types/authenticated-user';
@@ -16,8 +24,8 @@ export class QueensController {
constructor(private readonly queensService: QueensService) {}
@Get()
findAll() {
return this.queensService.findAll();
findAll(@Query('status') status?: QueenStatus) {
return this.queensService.findAll({ status });
}
@Get(':id')