-
Notifications
You must be signed in to change notification settings - Fork 0
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
train number API spec #391
base: main
Are you sure you want to change the base?
Conversation
type = "number", | ||
format = "double", | ||
description = "Timestamp of the start of train operation in seconds since epoch or timestamp", | ||
example = "1727188352.001" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double finde ich nicht besonders sinnvoll für Timestamp. Lieber mit ISO oder INT arbeiten.
@RequestMapping("api/v1/train-numbers") | ||
@Tag(name = "Train numbers", description = "API for train numbers") | ||
class TrainNumberController { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
betriebstag
] | ||
) | ||
@PostMapping(consumes = ["application/json"]) | ||
fun addTrainNumbers(@RequestBody trainNumbers: List<TrainNumberDto>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
insert, update, delete aufgrund keys nummer, ru, betriebstag
description = "Train number alphanumeric", | ||
example = "123" | ||
) | ||
val number: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
identifier
@Grodien @rawi-coding Please review the api spec.
The idea is that an adapter is going to write the train numbers periodically to the api. May also receive updates. start is the datetime of train start as SFERA specifies no operational date
TODOs