diff --git a/DoSomethingService/Controllers/v1/SomethingV1Controller.cs b/DoSomethingService/Controllers/v1/SomethingV1Controller.cs index a352515..2272c63 100644 --- a/DoSomethingService/Controllers/v1/SomethingV1Controller.cs +++ b/DoSomethingService/Controllers/v1/SomethingV1Controller.cs @@ -5,10 +5,9 @@ namespace DoSomethingService.Controllers.v1; /// /// This is an api to return some data in a made up senario /// +[Route("api/v{version:apiVersion}/[controller]")] [ApiController] [ApiVersion("1.0")] -[ApiVersion("2.0")] -[Route("api/v{version:apiVersion}/[controller]")] public class SomethingController : ControllerBase { private readonly ILogger _logger; @@ -43,24 +42,7 @@ public string Get(string whatToDo) { return $"You wanted me to {whatToDo}, there I did something"; } - /// - /// If you need to do something then, just tell it - /// what you want to do - /// - /// The thing you want it to do - /// The number of times you want it to do something - /// What happened - [MapToApiVersion("2.0")] - [HttpGet("DoSomething")] - public string Get(string whatToDo, int numberOfTimes) - { - var returnString = ""; - for (int i = 0; i < numberOfTimes; i++) - { - returnString += $"You wanted me to {whatToDo}, there I did something"; - } - return returnString; - } + /// /// If you want to post something for it to do ///