Skip to content

Commit

Permalink
EES-5396 Add api-supported-versions header to public API
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsim committed Dec 9, 2024
1 parent 04222ee commit b09c5ca
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,16 @@ public void ConfigureServices(IServiceCollection services)
});

services.AddProblemDetails();
services.AddApiVersioning().AddMvc().AddApiExplorer();

services
.AddApiVersioning(options =>
{
// Supported versions listed in `api-supported-versions` header
options.ReportApiVersions = true;
})
.AddMvc()
.AddApiExplorer();

services.AddEndpointsApiExplorer();

// Swagger
Expand Down

0 comments on commit b09c5ca

Please sign in to comment.