Created
June 9, 2023 10:16
-
-
Save AndyButland/407f8a9b1d8dbb1c4a35af6158e497ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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