Class FollowersResource

java.lang.Object
dev.getelements.elements.rest.followers.FollowersResource

@Path("follower") public class FollowersResource extends Object
  • Constructor Details

    • FollowersResource

      public FollowersResource()
  • Method Details

    • getFollowers

      @GET @Path("{profileId}") @Produces("application/json") public Pagination<Profile> getFollowers(@PathParam("profileId") String profileId, @QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("count") @DefaultValue("20") int count)
    • getFollower

      @GET @Path("{profileId}/{followedId}") @Produces("application/json") public Profile getFollower(@PathParam("profileId") String profileId, @PathParam("followedId") String followedId)
    • createFollower

      @POST @Path("{profileId}") @Consumes("application/json") @Produces("application/json") public void createFollower(@PathParam("profileId") String profileId, CreateFollowerRequest createFollowerRequest)
    • deleteFollower

      @DELETE @Path("{profileId}/{profileToUnfollowId}") @Produces("application/json") public void deleteFollower(@PathParam("profileId") String profileId, @PathParam("profileToUnfollowId") String profileToUnfollowId)
    • getValidationHelper

      public ValidationHelper getValidationHelper()
    • setValidationHelper

      @Inject public void setValidationHelper(ValidationHelper validationHelper)
    • getFollowerService

      public FollowerService getFollowerService()
    • setFollowerService

      @Inject public void setFollowerService(FollowerService followerService)