forked from MDCPS/DamageAssessment_Backend
changed all end points to small case
This commit is contained in:
@ -16,7 +16,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
/// Get all locations.
|
||||
/// </summary>
|
||||
|
||||
[HttpGet("Locations")]
|
||||
[HttpGet("locations")]
|
||||
public async Task<ActionResult> GetLocationsAsync()
|
||||
{
|
||||
|
||||
@ -32,7 +32,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
/// Get all locations based on locationdId.
|
||||
/// </summary>
|
||||
|
||||
[HttpGet("Locations/{id}")]
|
||||
[HttpGet("locations/{id}")]
|
||||
public async Task<ActionResult> GetLocationByIdAsync(int id)
|
||||
{
|
||||
|
||||
@ -48,7 +48,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
/// Update a Location.
|
||||
/// </summary>
|
||||
|
||||
[HttpPut("Locations/{id}")]
|
||||
[HttpPut("locations/{id}")]
|
||||
public async Task<IActionResult> UpdateLocation(int id, Models.Location Location)
|
||||
{
|
||||
if (Location != null)
|
||||
@ -66,7 +66,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
/// Save a new location.
|
||||
/// </summary>
|
||||
|
||||
[HttpPost("Locations")]
|
||||
[HttpPost("locations")]
|
||||
public async Task<IActionResult> CreateLocation(Models.Location Location)
|
||||
{
|
||||
if (Location != null)
|
||||
@ -84,7 +84,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
/// Delete an existing location.
|
||||
/// </summary>
|
||||
|
||||
[HttpDelete("Locations/{id}")]
|
||||
[HttpDelete("locations/{id}")]
|
||||
public async Task<IActionResult> DeleteLocation(int id)
|
||||
{
|
||||
var result = await this.LocationProvider.DeleteLocationAsync(id);
|
||||
|
Reference in New Issue
Block a user