I have created the restFulWebService for social distance.I have written 5 REST APIs:
1.createProfile
2.addUserFriend
3.removeUserFriend
4.viewFriendList
5.findConnectionsAtDistanceK
All the apis are simple except last one where i use BFS(Breadth First Search).First time my competitve coding part come into practice i enjoyed writing this last api.
Tech Stack:
1.Java 8
2.Spring Boot
3.Postgresql
4.Maven
Instructions to run the application:
This is spring boot project with maven dependecies.You can import the project in spring boot and change the db properties in application.properties file then you just need to run mvn clean spring-boot:run command to run the project.