From 4d68ef4bfb8586183d74e6bce3d43778c95e84bb Mon Sep 17 00:00:00 2001 From: mghilardelli Date: Mon, 16 Dec 2024 15:03:12 +0100 Subject: [PATCH] docs: remove tourDate --- .../kotlin/ch/sbb/backend/tours/application/TourDto.kt | 10 +--------- .../sbb/backend/tours/application/ToursController.kt | 6 ++---- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/backend/src/main/kotlin/ch/sbb/backend/tours/application/TourDto.kt b/backend/src/main/kotlin/ch/sbb/backend/tours/application/TourDto.kt index f042124b..b35566e0 100644 --- a/backend/src/main/kotlin/ch/sbb/backend/tours/application/TourDto.kt +++ b/backend/src/main/kotlin/ch/sbb/backend/tours/application/TourDto.kt @@ -1,7 +1,6 @@ package ch.sbb.backend.tours.application import io.swagger.v3.oas.annotations.media.Schema -import java.time.LocalDate @Schema(name = "Tour") @@ -13,18 +12,11 @@ data class TourDto( val userId: String, @Schema( - description = "Identification of the tour. Unique for day and company", + description = "Identification of the tour. Unique per company", example = "123456" ) val tourId: String, - @Schema( - description = "Start date of the tour", - example = "2024-12-24" - ) - val startDate: LocalDate, - - @Schema( description = "Company code", example = "1085" diff --git a/backend/src/main/kotlin/ch/sbb/backend/tours/application/ToursController.kt b/backend/src/main/kotlin/ch/sbb/backend/tours/application/ToursController.kt index 608cd1df..09e5ed63 100644 --- a/backend/src/main/kotlin/ch/sbb/backend/tours/application/ToursController.kt +++ b/backend/src/main/kotlin/ch/sbb/backend/tours/application/ToursController.kt @@ -35,8 +35,8 @@ class ToursController { ) ] ) - @PutMapping(consumes = ["application/json"]) - fun updateTours(@RequestBody tours: List) { + @PutMapping("bulk", consumes = ["application/json"]) + fun bulkUpdateTours(@RequestBody tours: List) { } @@ -66,9 +66,7 @@ class ToursController { ) @DeleteMapping fun deleteTour( - @RequestParam userId: String, @RequestParam tourId: String, - @RequestParam startDate: LocalDate, @RequestParam company: String ) {