Closed tomkerkhove closed 5 years ago
I'm not aware of what {version:apiVersion}
& Microsoft.AspNetCore.Mvc.Versioning
leverage so might be my ignorance - If so, sorry and ignore below
@MassimoC @samneirinck is this intentionally that you can specify version when calling the endpoint instead of having fixed versions in the routes?
My suggestion would be to:
Controllers\v1\PlayersController.cs
as a folder structureworld-cup/v1/[controller]
as route on controllerThis would mean that the version is explicit and we only generate URLs for supported endpoints as well. Now the user needs to know what versions are supported or am I missing something?
@MisterKite actually versioning as a parameter is pretty annoying. Please apply the suggestion of Tom
closed with the PR #50
Fix api version in uri path