java.lang.Object
ru.foodtechlab.lib.auth.integration.proxy.api.credential.v1.controllers.CredentialProxyApiController
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

public class CredentialProxyApiController extends Object implements ru.foodtechlab.lib.auth.service.facade.credential.resources.CredentialResource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>
     
    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>
     
    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.OkApiResponse
     
    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>
     
    com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>
     
    com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>
     
    com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse>
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CredentialProxyApiController

      public CredentialProxyApiController()
  • Method Details

    • 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:
      changePassword in interface ru.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:
      changeStatus in interface ru.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:
      create in interface ru.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:
      findById in interface ru.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:
      findByName in interface ru.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:
      find in interface ru.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:
      update in interface ru.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:
      changeBlockStatus in interface ru.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:
      delete in interface ru.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(String email)
      Specified by:
      findByEmail in interface ru.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(String phone)
      Specified by:
      findByPhoneNumber in interface ru.foodtechlab.lib.auth.service.facade.credential.endpoints.FindCredentialByPhoneNumberEndpoint