fixed runtime issue with duplicate names

dev
Don Oerkfitz
parent a5d4d5413f
commit 1991739287

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

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

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

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

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

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

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

Loading…
Cancel
Save