Station to the Train Ticket Machine task
- Clone
- Run docker-compose up
- Send get request with "prefix" parameter eg.: localhost:80/Stations?prefix=Ad
- Response:
{
"stationsNames": [
"Adderley Park",
"Addiewell",
"Addlestone",
"Adisham",
"Adlington (Cheshire)",
"Adlington (Lancs)",
"Adwick"
],
"nextLetters": [
"d",
"i",
"l",
"w"
]
}
- Url with station data source is sotred in appsettings.json in section InfrastructureConfig:StationsApiUrl
{
"stationsNames": [
"Adderley Park",
"Addiewell",
"Addlestone",
"Adisham",
"Adlington (Cheshire)",
"Adlington (Lancs)",
"Adwick"
],
"nextLetters": [
"d",
"i",
"l",
"w"
]
}
{
"stationsNames": [
"Adderley Park"
],
"nextLetters": [
" "
]
}
{
"stationsNames": [],
"nextLetters": []
}