Class AuthSessionController
- java.lang.Object
-
- ru.foodtechlab.lib.auth.service.api.authorization.session.v1.AuthSessionController
-
- All Implemented Interfaces:
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,ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource
@RestController @Component public class AuthSessionController extends Object implements ru.foodtechlab.lib.auth.service.facade.authorizationSession.resources.AuthSessionResource
-
-
Constructor Summary
Constructors Constructor Description AuthSessionController()
-
Method Summary
All Methods Instance Methods Concrete 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
-
disableByDeviceId
@PostMapping(value="/api/v1/auth-sessions/disable-by-device-id", produces="application/json") public 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
-
disableByEmail
@PostMapping(value="/api/v1/auth-sessions/disable-by-email", produces="application/json") public 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
-
disableById
@PostMapping(value="/api/v1/auth-sessions/{id}/disable", produces="application/json") public com.rcore.rest.api.commons.response.OkApiResponse disableById(@PathVariable String id)- Specified by:
disableByIdin interfaceru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByIdEndpoint
-
disableByIp
@PostMapping(value="/api/v1/auth-sessions/disable-by-ipv4", produces="application/json") public 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
-
disableByPhoneNumber
@PostMapping(value="/api/v1/auth-sessions/disable-by-phone", produces="application/json") public 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
-
findById
@GetMapping(value="/api/v1/auth-sessions/{id}", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.responses.AuthorizationSessionResponse> findById(@PathVariable String id)- Specified by:
findByIdin interfaceru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionByIdEndpoint
-
find
@GetMapping(value="/api/v1/auth-sessions", produces="application/json") public 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(@ModelAttribute ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.SearchAuthorizationSessionsWithFiltersRequest request)- Specified by:
findin interfaceru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.FindAuthSessionsEndpoint
-
disableByUsername
@PostMapping(value="/api/v1/auth-sessions/disable-by-username", produces="application/json") public com.rcore.rest.api.commons.response.OkApiResponse disableByUsername(ru.foodtechlab.lib.auth.service.facade.authorizationSession.dto.requests.DisableByUsernameRequest request)- Specified by:
disableByUsernamein interfaceru.foodtechlab.lib.auth.service.facade.authorizationSession.endpoints.DisableAuthSessionByUsernameEndpoint
-
-