PranilDahal / Eagle-Post

Eagle-Post: Social Media Software Project - ACM Cal State LA
11 stars 2 forks source link

Add functionality to return all the SSUs posted by a specific user #31

Closed calstatelaacm closed 5 years ago

calstatelaacm commented 5 years ago

You will working together with whoever picked up the issue #30 and #29

Write the following function inside SsuFactory. It should return all the SSU posts make by a specific user. Parameter being passed in is the unique id of the user.

public List<SimpleStatusUpdate> getAllByUserId(String userid) {
 // CODE HERE
    }

Create a controller inside SsuControllers.jaga for that method:

http.GET request to the following url should return all the SSU posted by that specific userid localhost:8080/SSU/byuser/{userid}

PranilDahal commented 5 years ago

Implemented by admins.