Skip to content

Commit

Permalink
Merge pull request #6 from HannaAndreevna/fix-client-api-name
Browse files Browse the repository at this point in the history
Fix api name and ProducesResponseType
  • Loading branch information
starkmsu committed May 20, 2020
2 parents 6863e82 + 5a65827 commit 552071f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions client/MAVN.Service.Kyc.Client/IKycClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IKycClient
// NO actual methods should be placed here (these go to controller interfaces, for example - IKycApi).
// ONLY properties for accessing controller interfaces are allowed.

/// <summary>Application Api interface</summary>
IKycApi Api { get; }
/// <summary>Application KycApi interface</summary>
IKycApi KycApi { get; }
}
}
8 changes: 4 additions & 4 deletions client/MAVN.Service.Kyc.Client/KycClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ namespace MAVN.Service.Kyc.Client
/// </summary>
public class KycClient : IKycClient
{
// Note: Add similar Api properties for each new service controller
// Note: Add similar KycApi properties for each new service controller

/// <summary>Inerface to Kyc Api.</summary>
public IKycApi Api { get; private set; }
/// <summary>Interface to Kyc KycApi.</summary>
public IKycApi KycApi { get; private set; }

/// <summary>C-tor</summary>
public KycClient(IHttpClientGenerator httpClientGenerator)
{
Api = httpClientGenerator.Generate<IKycApi>();
KycApi = httpClientGenerator.Generate<IKycApi>();
}
}
}
2 changes: 1 addition & 1 deletion src/MAVN.Service.Kyc/Controllers/KycController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public async Task<KycInformationResponse> GetCurrentByPartnerIdAsync([FromQuery]
/// </summary>
/// <param name="partnerId"></param>
[HttpGet("history")]
[ProducesResponseType(typeof(KycInformationResponse), (int)HttpStatusCode.OK)]
[ProducesResponseType(typeof(KycStatusChangeResponse), (int)HttpStatusCode.OK)]
public async Task<IReadOnlyList<KycStatusChangeResponse>> GetKycStatusChangeHistoryByPartnerIdAsync([FromQuery]Guid partnerId)
{
var result = await _kycService.GetKycStatusChangesAsync(partnerId);
Expand Down

0 comments on commit 552071f

Please sign in to comment.