→ Implements a Twitter-like messaging service using Spring Boot.
→ Provides a Rest API with all endpoints under Basic HTTP Authentication which is implemented using Spring Security.
→ Data stored in H2, an in-memory SQL database.
curl -u "<username>:<password>" "http://localhost:8080/followers"
curl -u "<username>:<password>" "http://localhost:8080/following"
curl -u "<username>:<password>" -X PUT "http://localhost:8080/follow" --data "name=Xandra"
curl -u "<username>:<password>" -X PUT "http://localhost:8080/unfollow" --data "name=Xandra"
a) This is used to get tweets of the user himself and of all the users he follows.
curl -u "<username>:<password>" "http://localhost:8080/feed"
b) Supports a "?search=" functionality which filters tweets depending on keyword given.
curl -u "<username>:<password>" "http://localhost:8080/feed?search=lorem"
curl -u "<username>:<password>" "http://localhost:8080/popularfollower"
The username and password has been stored in application.properties
file. We make an assumption that the user to which the username belongs, is one of the 10 users which we create at the start of the application.