brianpos / fhir-net-web-api

.NET FHIR webapi and netapicore facade library
Other
27 stars 13 forks source link

Remove swagger from routes #13

Closed JoeShook closed 1 year ago

JoeShook commented 2 years ago

As a consumer of HL7.Fhir.R4.WebApi.AspNetCore, I want to use Swagger in my Asp.Net Web app. Adding Swagger to the Route regex as a negative match. Test included. Swashbuckle.AspNetCore added to Asp.Net Demo Server.

JoeShook commented 2 years ago

Actually this PR is not required. While it is a solution to allow Swagger to be on the route, another solution can be enabled in the startup code.

In my bare bones Asp.Net WebApi project I just needed to add the following code to ensure swagger is routed to.

app.UseRouting();
app.UseEndpoints(endpoints =>
{
    endpoints.MapSwagger();
});
brianpos commented 1 year ago

I assume we can just close this one now?

JoeShook commented 1 year ago

Yes. I think it should be closed.