Class TwitterAccountRest
java.lang.Object
io.meeds.twitter.gamification.rest.TwitterAccountRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWatchedAccount(jakarta.servlet.http.HttpServletRequest request, String twitterUsername) voiddeleteWatchedAccount(jakarta.servlet.http.HttpServletRequest request, long accountId) getWatchedAccountById(jakarta.servlet.http.HttpServletRequest request, long accountId) org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<TwitterAccountRestEntity>> getWatchedAccounts(jakarta.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TwitterAccountRestEntity> assembler)
-
Constructor Details
-
TwitterAccountRest
public TwitterAccountRest()
-
-
Method Details
-
getWatchedAccounts
@GetMapping @Secured("users") public org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<TwitterAccountRestEntity>> getWatchedAccounts(jakarta.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<TwitterAccountRestEntity> assembler) -
getWatchedAccountById
@GetMapping(path="{accountId}") @Secured("users") public TwitterAccount getWatchedAccountById(jakarta.servlet.http.HttpServletRequest request, @PathVariable("accountId") long accountId) -
createWatchedAccount
@PostMapping @Secured("users") public void createWatchedAccount(jakarta.servlet.http.HttpServletRequest request, @RequestParam("twitterUsername") String twitterUsername) -
deleteWatchedAccount
@DeleteMapping(path="{accountId}") @Secured("users") public void deleteWatchedAccount(jakarta.servlet.http.HttpServletRequest request, @PathVariable("accountId") long accountId)
-