Implements get photos for an item

This commit is contained in:
2026-05-15 13:40:25 -05:00
parent 6327e0d034
commit eed5a0dd56
4 changed files with 22 additions and 4 deletions

View File

@@ -61,8 +61,9 @@ class TeamController(private val teamService: TeamService, private val photoServ
@Operation(summary = "Get list of photo information for the specified Team, Hunt, and Item")
fun getItemPhotos(@PathVariable huntId: HuntId,
@PathVariable teamId: TeamId,
@PathVariable itemId: ItemId): ResponseEntity<List<PhotoResponse>> {
TODO("Get list of photo information for the specified Team, Hunt, and Item")
@PathVariable itemId: ItemId,
authentication: Authentication): ResponseEntity<List<PhotoResponse>> {
return ResponseEntity.ok(photoService.getItemPhotos(huntId, teamId, itemId, authentication.name))
}
@PatchMapping("/{teamId}/item/{itemId}/photo/{photoId}")