Maylayloo / Maylayloo/Hackyeah2025

Create JSONResponse for "Śledzone trasy"

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
backend
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I'll (FE) be ready to reveive `_JSON_ ` from backend.
I don't know whether it would apply to travels being searched.

NOTE: `?` in key - `key?:` means that value may be null.
NOTE2: We may have different definitions of routes / segments so ask me if you need
NOTE3: Routes can have many segments, segments are assigned to one route only.

Get Followed (?) routes (or something like that), followed != saved!!!

_Route Example:_
```
{
id: number
name: string,
routeStart: string, # Budryka 2, Kraków
routeDestination: string, # Dworzec Główny, Tarnów
startDate: whatever suits you, # 13:23, 06.10.2025
endDate; -||-,
estimatedTime: string, # 01:10h; 38 minut
problem: boolean
level?: 1 | 2
}
```

For something like: Get segments by routeId (whatever you call it)
_Segments Example:_
```
{
id: number, # preffered: 1, 2, 3 - will be shown to user
routeId: number
from: string,
to: string,
type: "Foot" | "Bus" | "Tram" | "Train",
estimatedTime: string, # 11 minut, 03:15h etc
busLine?: string,
trainName?: string, # IC 3213 Żeromski
tramLine?: string
problem: boolean
level?: 1 | 2
}

}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.