Closed EmreMengukan closed 2 years ago
@EmreMengukan AutoWrapper provides public Models that you can use as type for responses here: https://github.com/proudmonkey/AutoWrapper/tree/master/src/AutoWrapper/Models
Super :) I have done it using as below
[ProducesResponseType(typeof(ApiResultResponse<TestResponse>), Status200OK)]
[ProducesResponseType(typeof(ApiProblemDetailsValidationErrorResponse), Status422UnprocessableEntity)]
[ProducesResponseType(typeof(ApiProblemDetailsExceptionResponse), StatusCodes.Status500InternalServerError)]
public class TestResponse
{
public string Name { get; set; }
}
ApiResultResponse.cs file properties StatusCode column not found. should i use this with new ApiResultClass with PropertyAttribute [AutoWrapperPropertyMap(Prop.StatusCode)]
AutoWrapper.Wrappers.ApiResponse it's in it StatusCode
It was my intent not to include StatusCode in the response body as it appears redundant.
It was my intent not to include StatusCode in the response body as it appears redundant.
thank you for your return
internal class to public Method attribute swagger support [ProducesResponseType(typeof(ApiProblemDetails), Status422UnprocessableEntity)]