Class HooksManagementRest

java.lang.Object
io.meeds.github.gamification.rest.HooksManagementRest

@RestController @RequestMapping("hooks") public class HooksManagementRest extends Object
  • Field Details

  • Constructor Details

    • HooksManagementRest

      public HooksManagementRest()
  • Method Details

    • getWebHooks

      @GetMapping @Secured("users") public org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<WebHookRestEntity>> getWebHooks(jakarta.servlet.http.HttpServletRequest request, org.springframework.data.domain.Pageable pageable, org.springframework.data.web.PagedResourcesAssembler<WebHookRestEntity> assembler)
    • getWebHookById

      @GetMapping(path="{webHookId}") @Secured("users") public WebHookRestEntity getWebHookById(jakarta.servlet.http.HttpServletRequest request, @PathVariable("webHookId") long webHookId)
    • createWebhookHook

      @PostMapping @Secured("users") public void createWebhookHook(jakarta.servlet.http.HttpServletRequest request, @RequestParam("organizationName") String organizationName, @RequestParam("accessToken") String accessToken)
    • updateWebHookAccessToken

      @PatchMapping(path="{webHookId}") @Secured("users") public void updateWebHookAccessToken(jakarta.servlet.http.HttpServletRequest request, @PathVariable("webHookId") long webHookId, @RequestParam("accessToken") String accessToken)
    • deleteWebhook

      @DeleteMapping(path="{organizationId}") @Secured("users") public void deleteWebhook(jakarta.servlet.http.HttpServletRequest request, @PathVariable("organizationId") long organizationId)
    • getWebHookRepos

      @GetMapping(path="{organizationId}/repos") @Secured("users") public RepositoryList getWebHookRepos(jakarta.servlet.http.HttpServletRequest request, @PathVariable("organizationId") long organizationId, @RequestParam("page") int page, @RequestParam("perPage") int perPage, @RequestParam("keyword") String keyword)
    • updateWebHookRepoStatus

      @PostMapping(path="repo/status") @Secured("users") public void updateWebHookRepoStatus(jakarta.servlet.http.HttpServletRequest request, @RequestParam("organizationId") long organizationId, @RequestParam("repositoryId") long repositoryId, @RequestParam("enabled") boolean enabled)