diff --git a/Controllers/WeatherForecastController.cs b/Controllers/WeatherForecastController.cs index 702f46c..7657bed 100644 --- a/Controllers/WeatherForecastController.cs +++ b/Controllers/WeatherForecastController.cs @@ -7,9 +7,7 @@ namespace welcome_api.Controllers { [ApiController] - [ApiVersion("1.0")] - [ApiVersion("2.0")] - [Route("api/v{version:apiVersion}/WeatherForecast")] + [Route("api/Weather")] public class WeatherForecastController : BaseApiController { private static readonly string[] Summaries = new[] diff --git a/README.md b/README.md index feb00ca..1a5bf1e 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,5 @@ Two versions are enabled for the API, 1.0, 2.0 - Clone the repo - do: dotnet run - server will start by default on port 5000,5001 based on launchsettings -- access the api at https://localhost:5001/api/v1/WeatherForecast -- metadata endpoint is at https://localhost:5001/api/v1/WeatherForecast/metadata +- access the api at https://localhost:5001/api/Weather +- metadata endpoint is at https://localhost:5001/api/Weather/metadata