Implements team item status endpoint

This commit is contained in:
2026-05-14 23:35:53 -05:00
parent 67fb801812
commit dbd988a573
8 changed files with 43 additions and 13 deletions

View File

@@ -47,12 +47,13 @@ class TeamController(private val teamService: TeamService, private val photoServ
}
@GetMapping("/{teamId}/item/{itemId}")
@Operation(summary = "Get found/not found status and photo information about the Item for the specified Team, Hunt, and Item")
@Operation(summary = "Get found/not found status about the Item for the specified Team, Hunt, and Item")
fun getItemForTeam(@PathVariable huntId: HuntId,
@PathVariable teamId: TeamId,
@PathVariable itemId: ItemId): ResponseEntity<TeamItemResponse> {
TODO("Get found/not found status about the Item for the specified Team, Hunt, and Item")
@PathVariable itemId: ItemId,
authentication: Authentication): ResponseEntity<TeamItemResponse> {
val foundStatus = photoService.getItemFoundStatus(huntId, teamId, itemId, authentication.name)
return ResponseEntity.ok(TeamItemResponse(id = itemId, itemFoundStatus = foundStatus))
}
@GetMapping("/{teamId}/item/{itemId}/photo")