Why is it not displayed correctly?
i used Swashbuckle v5.6.0
in Swagger UI I get a model like
Inline Model [
Inline Model 1
]
Inline Model 1 { ID (integer, optional), WordingFR (string, optional), WordingNL (string, optional) }
for a REST Get method like:
[HttpGet]
[Route("GetCivilStatus")] // this route becomes [controller]/GetCivilStatus
[SwaggerResponse(HttpStatusCode.OK, Type = typeof(IEnumerable<CivilStatus>))]
public List<CivilStatus> GetCivilStatus()
{...}
Aucun commentaire:
Enregistrer un commentaire