Fix #129 Post_update_product_price_and_catalog_and_basket_list_modified test failing
This commit is contained in:
parent
bb39e5fd6e
commit
696610ed36
@ -130,6 +130,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
|
||||
return Ok(items);
|
||||
}
|
||||
|
||||
//POST api/v1/[controller]/edit
|
||||
[Route("edit")]
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> EditProduct([FromBody]CatalogItem product)
|
||||
@ -164,6 +165,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
//POST api/v1/[controller]/create
|
||||
[Route("create")]
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> CreateProduct([FromBody]CatalogItem product)
|
||||
@ -184,6 +186,7 @@ namespace Microsoft.eShopOnContainers.Services.Catalog.API.Controllers
|
||||
return Ok();
|
||||
}
|
||||
|
||||
//DELETE api/v1/[controller]/id
|
||||
[Route("{id}")]
|
||||
[HttpDelete]
|
||||
public async Task<IActionResult> DeleteProduct(int id)
|
||||
|
@ -34,7 +34,7 @@ namespace FunctionalTests.Services.Catalog
|
||||
|
||||
public static class Post
|
||||
{
|
||||
public static string UpdateCatalogProduct = "api/v1/catalog";
|
||||
public static string UpdateCatalogProduct = "api/v1/catalog/edit";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user