Interface FeignAuthorizationSessionClient

  • All Superinterfaces:
    ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByDeviceIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByEmailEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIpEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByPhoneNumberEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByUsernameEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionByIdEndpoint, ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionsEndpoint

    @FeignClient(name="feign-auth-session-service",
                 url="${foodtechlab.infrastructure.microservice.auth-service.url}",
                 configuration=FeignAuthorizationSessionServiceErrorDecoder.class)
    public interface FeignAuthorizationSessionClient
    extends ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.rcore.rest.api.commons.response.OkApiResponse disableByDeviceId​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByDeviceIdRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByEmail​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByEmailRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableById​(String id)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByIp​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByIpRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByPhoneNumber​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByPhoneRequest request)  
      com.rcore.rest.api.commons.response.OkApiResponse disableByUsername​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByUsernameRequest request)  
      com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.rest.api.commons.response.SearchApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse>> find​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.SearchAuthorizationSessionsWithFiltersRequest request)  
      com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse> findById​(String id)  
    • Method Detail

      • find

        @GetMapping("/api/v1/auth-sessions")
        com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.rest.api.commons.response.SearchApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse>> find​(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.SearchAuthorizationSessionsWithFiltersRequest request)
        Specified by:
        find in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionsEndpoint
      • findById

        @GetMapping("/api/v1/auth-sessions/{id}")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse> findById​(@PathVariable("id")
                                                                                                                                                                                String id)
        Specified by:
        findById in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionByIdEndpoint
      • disableById

        @PostMapping("/api/v1/auth-sessions/{id}/disable")
        com.rcore.rest.api.commons.response.OkApiResponse disableById​(@PathVariable("id")
                                                                      String id)
        Specified by:
        disableById in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIdEndpoint
      • disableByPhoneNumber

        @PostMapping("/api/v1/auth-sessions/disable-by-phone")
        com.rcore.rest.api.commons.response.OkApiResponse disableByPhoneNumber​(@RequestBody
                                                                               ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByPhoneRequest request)
        Specified by:
        disableByPhoneNumber in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByPhoneNumberEndpoint
      • disableByUsername

        @PostMapping("/api/v1/auth-sessions/disable-by-username")
        com.rcore.rest.api.commons.response.OkApiResponse disableByUsername​(@RequestBody
                                                                            ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByUsernameRequest request)
        Specified by:
        disableByUsername in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByUsernameEndpoint
      • disableByEmail

        @PostMapping("/api/v1/auth-sessions/disable-by-email")
        com.rcore.rest.api.commons.response.OkApiResponse disableByEmail​(@RequestBody
                                                                         ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByEmailRequest request)
        Specified by:
        disableByEmail in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByEmailEndpoint
      • disableByIp

        @PostMapping("/api/v1/auth-sessions/disable-by-ipv4")
        com.rcore.rest.api.commons.response.OkApiResponse disableByIp​(@RequestBody
                                                                      ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByIpRequest request)
        Specified by:
        disableByIp in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIpEndpoint
      • disableByDeviceId

        @PostMapping("/api/v1/auth-sessions/disable-by-device-id")
        com.rcore.rest.api.commons.response.OkApiResponse disableByDeviceId​(@RequestBody
                                                                            ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByDeviceIdRequest request)
        Specified by:
        disableByDeviceId in interface ru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByDeviceIdEndpoint