Class CredentialController
- java.lang.Object
-
- ru.foodtechlab.lib.auth.service.api.credential.v1.controllers.CredentialController
-
- All Implemented Interfaces:
ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeBlockedStatusEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialPasswordEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialStatusEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.CreateCredentialEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.DeleteCredentialEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByEmailEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByIdEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByNameEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByPhoneNumberEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialsEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.endpoints.UpdateCredentialEndpoint,ru.foodtechlab.lib.auth.service.facade.credential.resources.CredentialResource
@RestController @Component public class CredentialController extends Object implements ru.foodtechlab.lib.auth.service.facade.credential.resources.CredentialResource
-
-
Constructor Summary
Constructors Constructor Description CredentialController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>changeBlockStatus(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>changePassword(String id, ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.ChangeCredentialPasswordRequest request)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>changeStatus(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>create(ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.CreateCredentialRequest request)com.rcore.rest.api.commons.response.OkApiResponsedelete(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.commons.port.dto.SearchResult<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>>find(ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.FindCredentialWithFiltersRequest request)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>findByEmail(String email)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>findById(String id)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>findByName(String name)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>findByPhoneNumber(String phone)com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>update(String id, ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.UpdateCredentialRequest updateCredentialRequest)
-
-
-
Method Detail
-
changePassword
@PostMapping("/api/v1/credentials/{id}/change-password") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changePassword(@PathVariable String id, @RequestBody ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.ChangeCredentialPasswordRequest request)- Specified by:
changePasswordin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialPasswordEndpoint
-
changeStatus
@PostMapping("/api/v1/credentials/{id}/blocked-status-change") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changeStatus(@PathVariable String id)- Specified by:
changeStatusin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialStatusEndpoint
-
create
@PostMapping(value="/api/v1/credentials", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> create(@RequestBody ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.CreateCredentialRequest request)- Specified by:
createin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.CreateCredentialEndpoint
-
findById
@GetMapping(value="/api/v1/credentials/{id}", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findById(@PathVariable String id)- Specified by:
findByIdin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByIdEndpoint
-
findByName
@GetMapping("/api/v1/credentials/username") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByName(@RequestParam String name)- Specified by:
findByNamein interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByNameEndpoint
-
find
@GetMapping(value="/api/v1/credentials", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<com.rcore.domain.commons.port.dto.SearchResult<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>> find(@ModelAttribute ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.FindCredentialWithFiltersRequest request)- Specified by:
findin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialsEndpoint
-
update
@PutMapping("/api/v1/credentials/{id}") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> update(@PathVariable String id, @RequestBody ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.UpdateCredentialRequest updateCredentialRequest)- Specified by:
updatein interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.UpdateCredentialEndpoint
-
changeBlockStatus
@PostMapping(value="/api/v1/credentials/{id}/blocked-status-change", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changeBlockStatus(@PathVariable String id)- Specified by:
changeBlockStatusin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeBlockedStatusEndpoint
-
delete
@DeleteMapping(value="/api/v1/credentials/{id}", produces="application/json") public com.rcore.rest.api.commons.response.OkApiResponse delete(@PathVariable String id)- Specified by:
deletein interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.DeleteCredentialEndpoint
-
findByEmail
@GetMapping(value="/api/v1/credentials/email", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByEmail(@RequestParam String email)- Specified by:
findByEmailin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByEmailEndpoint
-
findByPhoneNumber
@GetMapping(value="/api/v1/credentials/phone_number", produces="application/json") public com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByPhoneNumber(@RequestParam String phone)- Specified by:
findByPhoneNumberin interfaceru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByPhoneNumberEndpoint
-
-