Skip to content

Instantly share code, notes, and snippets.

@AndyButland
Created June 9, 2023 10:16
Show Gist options
  • Save AndyButland/407f8a9b1d8dbb1c4a35af6158e497ca to your computer and use it in GitHub Desktop.
Save AndyButland/407f8a9b1d8dbb1c4a35af6158e497ca to your computer and use it in GitHub Desktop.
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace Umbraco.Forms.Web.Configuration
{
public class ConfigureUmbracoFormsApiSwaggerGenOptions : IConfigureOptions<SwaggerGenOptions>
{
public void Configure(SwaggerGenOptions options)
{
options.SwaggerDoc(
"forms",
new OpenApiInfo
{
Title = "Umbraco Forms API",
Version = "Latest",
Description = "Describes the Umbraco Forms API available for rendering and posting forms.",
});
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment