Interface FeignCredentialAndInitServiceClient

  • All Superinterfaces:
    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.CheckAvailableInitCredentialEndpoint, ru.foodtechlab.lib.auth.service.facade.credential.endpoints.CreateCredentialEndpoint, ru.foodtechlab.lib.auth.service.facade.credential.resources.CredentialResource, 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.InitCredentialEndpoint, ru.foodtechlab.lib.auth.service.facade.credential.resources.InitCredentialResource, UnitedResources, ru.foodtechlab.lib.auth.service.facade.credential.endpoints.UpdateCredentialEndpoint

    @FeignClient(name="feign-auth-service-credential-init",
                 url="${foodtechlab.infrastructure.microservice.auth-service.url}",
                 configuration=FeignCredentialServiceConfig.class)
    public interface FeignCredentialAndInitServiceClient
    extends UnitedResources
    • Method Summary

      All Methods Instance Methods Abstract 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<Boolean> checkInitAvailable()  
      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 createCredentialRequest)  
      com.rcore.rest.api.commons.response.OkApiResponse delete​(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> init​(ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.InitCredentialRequest createCredentialRequest)  
      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

      • init

        @PostMapping("/not-secure/api/v1/credentials")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> init​(@RequestBody
                                                                                                                                                        ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.InitCredentialRequest createCredentialRequest)
        Specified by:
        init in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.InitCredentialEndpoint
      • create

        @PostMapping("/api/v1/credentials")
        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 createCredentialRequest)
        Specified by:
        create in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.CreateCredentialEndpoint
      • checkInitAvailable

        @GetMapping("/not-secure/api/v1/credentials/check-available")
        com.rcore.rest.api.commons.response.SuccessApiResponse<Boolean> checkInitAvailable()
        Specified by:
        checkInitAvailable in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.CheckAvailableInitCredentialEndpoint
      • find

        @GetMapping("/api/v1/credentials")
        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)
        Specified by:
        find in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialsEndpoint
      • findById

        @GetMapping("/api/v1/credentials/{id}")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findById​(@PathVariable("id")
                                                                                                                                                            String id)
        Specified by:
        findById in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByIdEndpoint
      • findByName

        @GetMapping("/api/v1/credentials/username")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByName​(@RequestParam("name")
                                                                                                                                                              String name)
        Specified by:
        findByName in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByNameEndpoint
      • findByPhoneNumber

        @GetMapping("/api/v1/credentials/phone_number")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByPhoneNumber​(@RequestParam("phone")
                                                                                                                                                                     String phone)
        Specified by:
        findByPhoneNumber in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByPhoneNumberEndpoint
      • findByEmail

        @GetMapping("/api/v1/credentials/email")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findByEmail​(@RequestParam("email")
                                                                                                                                                               String email)
        Specified by:
        findByEmail in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByEmailEndpoint
      • update

        @PutMapping("/api/v1/credentials/{id}")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> update​(@PathVariable("id")
                                                                                                                                                          String id,
                                                                                                                                                          @RequestBody
                                                                                                                                                          ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.UpdateCredentialRequest updateCredentialRequest)
        Specified by:
        update in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.UpdateCredentialEndpoint
      • changeStatus

        @PostMapping("/api/v1/credentials/{id}/blocked-status-change")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changeStatus​(@PathVariable("id")
                                                                                                                                                                String id)
        Specified by:
        changeStatus in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialStatusEndpoint
      • changePassword

        @PostMapping("/api/v1/credentials/{id}/change-password")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changePassword​(@PathVariable("id")
                                                                                                                                                                  String id,
                                                                                                                                                                  @RequestBody
                                                                                                                                                                  ru.foodtechlab.lib.auth.service.facade.credential.dto.requests.ChangeCredentialPasswordRequest request)
        Specified by:
        changePassword in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeCredentialPasswordEndpoint
      • delete

        @DeleteMapping("/api/v1/credentials/{id}")
        com.rcore.rest.api.commons.response.OkApiResponse delete​(@PathVariable("id")
                                                                 String id)
        Specified by:
        delete in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.DeleteCredentialEndpoint
      • changeBlockStatus

        @PostMapping("/api/v1/credentials/{id}/blocked-status-change")
        com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> changeBlockStatus​(@PathVariable("id")
                                                                                                                                                                     String id)
        Specified by:
        changeBlockStatus in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.ChangeBlockedStatusEndpoint