DEV Community

Discussion on: Building REST APIs In .NET 8 The Easy Way!

Collapse
 
arizvitechgies profile image
arizvi-techgies

Nice! I was wondering if there is a way to separate the Features as a project.

For example:

MyDemoApp - Solution
MyDemoApp.API - CSPROJ (ASPNET Core Project)
MyDemoApp.Features.Admin - CSPROJ (Class Library)
MyDemoApp.Features.Client - CSPROJ (Class Library)

Each Feature project contains its own Endpoints and features folder structure, as shown in your blob.

Is there a way to bring all those Features Project .dll into MyDemoAPp.API and registered them in Startup.cs, so does Fast Endpoint pick them up?

Collapse
 
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ

it's possible. you can add assemblies that contain endpoints for discovery in the .AddFastEndpoints(...) call. hit us up in our discord channel if you have trouble getting that sorted.