Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: remove tourDate #467

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading