In this project, RESTful web services have been created using Spring Boot Framework.
- Java
- Spring Tool Suite (STS)
- Postman
All the properties mentioned below can be changed in "application.properties" file under "resources" folder.
- The project works on Tomcat server on port 8080.
- Context Path for APIs is set to "/mobile-app-ws".
- Either create your own Database (Ex:- MySQL) OR Let the default H2 Database connect on url: "jdbc:h2:mem:testdb".
- Default UserName and Password for Database connection has been set to "jatin".
- Launch "Mobile App Web Services" folder in Spring Tool Suite.
- It will take some time to build the project using Maven.
- After the build has been completed, right click on "mobile-app-ws" folder and then click "Run As" and finally choose "Spring Boot App".
The project will then finally start on your localhost. You can either use Postman or Swagger to send Requests.
Swagger UI url: http://localhost:8080/mobile-app-ws/swagger-ui/index.html
Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API. All the Request Formats will be available here.
H2 Console url: http://localhost:8080/mobile-app-ws/h2-console
The H2 Console application lets you access a database using a browser. This can be a H2 database, or another database that supports the JDBC API. In our case, H2 Database is selected as default. After entering the credentials in H2 console url, you will be able to access the Database Records.