This nuget helps you to save the body of endpoint and use it for later tries
Super easy.
First install by nuget package manager. or:
dotnet add package SwaggerUI.BodySave --version 1.0.11
Then, add this to your program.cs:
app.UseCustomSwaggerUI(); //instead of app.UseSwaggerUI();