fixed runtime issue with duplicate names

dev
Don Oerkfitz 4 years ago
parent a5d4d5413f
commit 1991739287

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class ClientsController : ControllerBase public class ClientsController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Clients/5 // GET: api/Clients/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class ExpensesController : ControllerBase public class ExpensesController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Expenses/5 // GET: api/Expenses/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class InvoicesController : ControllerBase public class InvoicesController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Invoices/5 // GET: api/Invoices/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class POsController : ControllerBase public class POsController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/POs/5 // GET: api/POs/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class PaymentsController : ControllerBase public class PaymentsController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Payments/5 // GET: api/Payments/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class ReportsController : ControllerBase public class ReportsController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Reports/5 // GET: api/Reports/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Mvc;
namespace OSI.API.Controllers namespace OSI.API.Controllers
{ {
[Route("api/[controller]")] [Route("api/v{version:apiVersion}/[controller]")]
[ApiController] [ApiController]
public class UsersController : ControllerBase public class UsersController : ControllerBase
{ {
@ -19,7 +19,7 @@ namespace OSI.API.Controllers
} }
// GET: api/Users/5 // GET: api/Users/5
[HttpGet("{id}", Name = "Get")] [HttpGet("{id}")]
public string Get(int id) public string Get(int id)
{ {
return "value"; return "value";

Loading…
Cancel
Save