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.OkApiResponsedisableByDeviceId(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByDeviceIdRequest request)com.rcore.rest.api.commons.response.OkApiResponsedisableByEmail(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByEmailRequest request)com.rcore.rest.api.commons.response.OkApiResponsedisableById(String id)com.rcore.rest.api.commons.response.OkApiResponsedisableByIp(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByIpRequest request)com.rcore.rest.api.commons.response.OkApiResponsedisableByPhoneNumber(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByPhoneRequest request)com.rcore.rest.api.commons.response.OkApiResponsedisableByUsername(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:
findin interfaceru.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:
findByIdin interfaceru.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:
disableByIdin interfaceru.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:
disableByPhoneNumberin interfaceru.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:
disableByUsernamein interfaceru.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:
disableByEmailin interfaceru.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:
disableByIpin interfaceru.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:
disableByDeviceIdin interfaceru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByDeviceIdEndpoint
-
-