RESTful APIs using Spring Boot, mysql
a demo using Spring Boot, mysql, Java, SQL and Intelli IDEA to implement RESTful APIs.
- install mysql
- log on to mysql
- create a database called "running_information_analysis_db" and use this database
- use scripts in "/database/1) create table.txt" to create tables
- use scripts in "/database/2) insert test data.txt" to insert test data into tables
- use scripts in "/database/3) check the data.txt" to check all the data
- install java 8
- download "/jar/Running-Information-Analysis-Service-1.0.0.BUILD-SNAPSHOT.jar"
- use "java -jar Running-Information-Analysis-Service-1.0.0.BUILD-SNAPSHOT.jar" to launch the programme
- visit the following address to see data in Json format(all the data are in descendinging order of heartRate and each page show two pieces of data)
"http://localhost:8080/findAllDisplayWithPage/x" where x is the page number(between 0 and 6) - use the following address to delete data
"http://localhost:8080//deleteByRunningId/x" where x is the runningId(between 1 and 14)
all the source files are located in "/source", please open them using Intelli IDEA