Interface FeignCredentialServiceClient
@FeignClient(name="feign-credential-service",
url="${foodtechlab.infrastructure.microservice.auth-service.url}",
configuration=FeignAuthServiceCredentialConfig.class)
public interface FeignCredentialServiceClient
-
Method Summary
Modifier and TypeMethodDescriptioncom.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>getCredentialByToken(String accessToken)
-
Method Details
-
getCredentialByToken
@GetMapping("/not-secure/api/v1/security/current-user") com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> getCredentialByToken(@RequestParam("token") String accessToken) -
findCredentialById
@GetMapping("/api/v1/credentials/{id}") com.rcore.rest.api.commons.response.SuccessApiResponse<ru.foodtechlab.lib.auth.service.facade.credential.dto.responses.CredentialResponse> findCredentialById(@PathVariable("id") String id)
-