Class HooksManagementRest
java.lang.Object
io.meeds.github.gamification.rest.HooksManagementRest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWebhookHook(jakarta.servlet.http.HttpServletRequest request, String organizationName, String accessToken) voiddeleteWebhook(jakarta.servlet.http.HttpServletRequest request, long organizationId) getWebHookById(jakarta.servlet.http.HttpServletRequest request, long webHookId) getWebHookRepos(jakarta.servlet.http.HttpServletRequest request, long organizationId, int page, int perPage, String keyword) 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) voidupdateWebHookAccessToken(jakarta.servlet.http.HttpServletRequest request, long webHookId, String accessToken) voidupdateWebHookRepoStatus(jakarta.servlet.http.HttpServletRequest request, long organizationId, long repositoryId, boolean enabled)
-
Field Details
-
GITHUB_HOOK_NOT_FOUND
- See Also:
-
-
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
-
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)
-