Closed SaMirzaei closed 6 months ago
I don't think there's any good mechanism built into the tool, at least not yet.
It's a little bit of a nuisance, but here's a workaround that should work:
ISwashBuckleClient.GetSwaggerUi
It would look something like this:
Stream ui = client.GetSwaggerUi("swagger.json");
string theHtml = new StreamReader(ui).ReadToEnd();
string extra = "<style>mycss</style>";
// TODO: Inject 'extra' into 'theHtml'
HttpResponseMessage response = new(HttpStatusCode.OK)
{
Content = new StringContent(theHtml, Encoding.UTF8, "text/html")
};
Fixed
Is there a possibility to add a custom CSS to Ui?