Forum Discussion

sirbeanselot's avatar
3 years ago

Separate API spec for separate projects

Hi there,

 

First time poster and new user here, so apologies if anything is at all unclear.

I am developing a middleware API in ASP.NET Core which is supposed to communicate with multiple different systems within the organisation.

For each system, I have a different project in my solution, containing Controller classes with endpoints.

I want to generate a spec for each project respectively.

 

To make it slightly clearer, below is an example directory structure resembling my current structure:

- BAS.API (main project, serving as entry point and general sum up)

- - Modules (solution directory)

- - - DMS.API (Class Library)

- - - Carwise.API (Class Library)

 

Currently, the configuration in BAS.API generates a single spec for itself as well as the class libraries.

I cannot seem to figure out how to generate a different spec for each class library and include them in the dropdown of SwaggerUI.

 

Is there any way this can be done? Any help or nudge in the right direction would be greatly appreciated.

 

Thank you in advance!

No RepliesBe the first to reply