Vertical Slice Architecture¶
Build with vertical slice architecture in mind.
You do not have to change existing code to add a new independent feature.
You can create as many vertical slices / features in your application as you want.
You can implement as many 'IApiEndpointDefinition' as you want, one per vertical slice or per feature.
public class ApiEndpointDefinition : IApiEndpointDefinition
{
public void Configure(ApiEndpointDefinitionBuilder definitionBuilder)
{
definitionBuilder.Web()
.Command<BlogCreate.ApiEndpoint>(builder => builder.Post("blog").Version(WebApiEndpointVersions.V1_0).Summary("Create Blog").Description("Create Blog"));
}
}