This app is deplyed by heroku. Heroku free starts server ~ 30 seconds, pls wait for the first time: https://flightgetter.herokuapp.com/
Start page you can find guide: https://flightgetter.herokuapp.com/
There are two interfaces:
get: /view/flights/{id}
create: /view/flights/create
In block of creating with csv string, insert this, for example: 100,SVO,BKK,20210701,2010,20210702,1115,SU-275
get: /flights/{id}
create by json: /flights
create by csv string: /flights/string
{
"id": 20,
"origin": "SVO",
"destination": "BKK",
"departureDate": 20210701,
"departureTime": 2010,
"arrivalDate" : 20210702,
"arrivalTime" : 1115,
"number": "SU-276"
}
\
{
"13,SVO,BKK,20210701,2010,20210702,1115,SU-275"
}
git clone https://github.com/mk17ru/springFlightGetter.git
you need to install postgresql port : 5432
In file application.properties you should set your password and username. Default username and password are postgres, postgres.
and you need to create database with name flight_db
run DemoApplication class
http://localhost:8080/