Swagger Fix + Imprints now showing (#3032)

This commit is contained in:
Joe Milazzo 2024-07-01 07:22:48 -05:00 committed by GitHub
parent e2fe53187e
commit ce0c9a3364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 759 additions and 30 deletions

View file

@ -117,6 +117,10 @@ public class AutoMapperProfiles : Profile
opt =>
opt.MapFrom(src =>
src.People.Where(p => p.Role == PersonRole.Inker).OrderBy(p => p.NormalizedName)))
.ForMember(dest => dest.Imprints,
opt =>
opt.MapFrom(src =>
src.People.Where(p => p.Role == PersonRole.Imprint).OrderBy(p => p.NormalizedName)))
.ForMember(dest => dest.Letterers,
opt =>
opt.MapFrom(src =>

View file

@ -137,14 +137,14 @@ public class Startup
{
c.SwaggerDoc("v1", new OpenApiInfo
{
Version = BuildInfo.Version.ToString(),
Version = "2.0",
Title = "Kavita",
Description = "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required.",
Description = $"Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v{BuildInfo.Version.ToString()}",
License = new OpenApiLicense
{
Name = "GPL-3.0",
Url = new Uri("https://github.com/Kareadita/Kavita/blob/develop/LICENSE")
}
},
});
var xmlFile = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";