Closed hmvs closed 3 years ago
Right now our API looks like that:
[HttpGet("some-method")] [ProducesResponseType(typeof(SomeOurResponse), 200)] [ProducesResponseType(typeof(ExceptionModel), 400)] [ProducesResponseType(typeof(ExceptionModel), 404)] public async Task<ObjectResult<SomeOurResponse>> GetSomethingAsync(int accountId, int id) { var response = await this._service.SomeOurMethod(accountId, id); return this.Ok<SomeOurResponse>(response); }
WebclientGenerator will generate method like this:
public async Task<AudienceProject.AudienceHub.Models.ExceptionModel> GetPossibleReachAsync(int accountId, int id) {
not so feasible with generated codes.
Right now our API looks like that:
WebclientGenerator will generate method like this: