Skip to content

Commit

Permalink
docs: remove tourDate (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
mghilardelli authored Dec 17, 2024
1 parent 23a1402 commit 22b31ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class ToursController {
)
]
)
@PutMapping(consumes = ["application/json"])
fun updateTours(@RequestBody tours: List<TourDto>) {
@PutMapping("bulk", consumes = ["application/json"])
fun bulkUpdateTours(@RequestBody tours: List<TourDto>) {

}

Expand Down Expand Up @@ -66,9 +66,7 @@ class ToursController {
)
@DeleteMapping
fun deleteTour(
@RequestParam userId: String,
@RequestParam tourId: String,
@RequestParam startDate: LocalDate,
@RequestParam company: String
) {

Expand Down

0 comments on commit 22b31ad

Please sign in to comment.