CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.
MIT License
2.05k stars 172 forks source link

[QUESTION] Any sample code using .WithOpenApi #322

Closed obiiswise closed 1 month ago

obiiswise commented 1 year ago

Hi!

Do you have any sample code using the .WithOpenApi on endpoints like .MapGet or .MapPost? I'd like to be able to configure our endpoints so Swagger will pull in the various response types, etc.

Thank you!

jchannon commented 1 year ago

Try here - https://github.com/CarterCommunity/Carter/blob/main/samples/CarterSample/Features/Actors/ActorsModule.cs#L12

On Tue, 13 Jun 2023 at 13:51, obiiswise @.***> wrote:

Hi!

Do you have any sample code using the .WithOpenApi on endpoints like .MapGet or .MapPost? I'd like to be able to configure our endpoints so Swagger will pull in the various response types, etc.

Thank you!

— Reply to this email directly, view it on GitHub https://github.com/CarterCommunity/Carter/issues/322, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZVJU3VVIDRVVNQ77ZEI3XLBV6LANCNFSM6AAAAAAZE5C7NE . You are receiving this because you are subscribed to this thread.Message ID: @.***>