diff --git a/src/main/kotlin/net/halfbinary/scavengerhuntapi/controller/TeamController.kt b/src/main/kotlin/net/halfbinary/scavengerhuntapi/controller/TeamController.kt index e1bfe9f..1b26eeb 100644 --- a/src/main/kotlin/net/halfbinary/scavengerhuntapi/controller/TeamController.kt +++ b/src/main/kotlin/net/halfbinary/scavengerhuntapi/controller/TeamController.kt @@ -41,11 +41,13 @@ class TeamController(private val teamService: TeamService) { } @GetMapping("/{teamId}") + @Operation(summary = "Get team info for the specified hunt") fun getTeam(@PathVariable huntId: HuntId, @PathVariable teamId: TeamId): ResponseEntity { return ResponseEntity.ok(teamService.getTeamFromHunt(huntId, teamId).toResponse()) } @GetMapping("/{teamId}/item/{itemId}") + @Operation(summary = "Get found/not found status and photo information about the Item for the specified Team, Hunt, and Item") fun getItemForTeam(@PathVariable huntId: HuntId, @PathVariable teamId: TeamId, @PathVariable itemId: ItemId): ResponseEntity { @@ -53,6 +55,7 @@ class TeamController(private val teamService: TeamService) { } @GetMapping("/{teamId}/item/{itemId}/photo") + @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> { @@ -60,6 +63,7 @@ class TeamController(private val teamService: TeamService) { } @GetMapping("/{teamId}/item/{itemId}/photo/{photoId}") + @Operation(summary = "Get photo information for the specified Team, Hunt, Item, and Photo") fun getPhotoInfo(@PathVariable huntId: HuntId, @PathVariable teamId: TeamId, @PathVariable itemId: ItemId, @@ -68,6 +72,7 @@ class TeamController(private val teamService: TeamService) { } @GetMapping("/{teamId}/item/{itemId}/photo/{photoId}/file") + @Operation(summary = "Get the binary image information for the specified Team, Hunt, Item, and Photo") fun getPhoto(@PathVariable huntId: HuntId, @PathVariable teamId: TeamId, @PathVariable itemId: ItemId, @@ -76,6 +81,7 @@ class TeamController(private val teamService: TeamService) { } @PostMapping("/{teamId}/item/{itemId}/photo") + @Operation(summary = "Save photo information and store the binary file") fun submitPhoto(@PathVariable huntId: HuntId, @PathVariable teamId: TeamId, @PathVariable itemId: ItemId,