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

train number API spec #391

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mghilardelli
Copy link
Collaborator

@mghilardelli mghilardelli commented Nov 18, 2024

@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

Screenshot 2024-11-18 at 17 42 17

TODOs

  • implement persistence
  • tenancy

@mghilardelli mghilardelli linked an issue Nov 18, 2024 that may be closed by this pull request
type = "number",
format = "double",
description = "Timestamp of the start of train operation in seconds since epoch or timestamp",
example = "1727188352.001"
Copy link
Collaborator

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 {

Copy link
Collaborator Author

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>) {
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

identifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zugnummer Schnittstelle
2 participants