Fix #129 Post_update_product_price_and_catalog_and_basket_list_modified test failing

This commit is contained in:
dsanz 2017-03-22 09:57:08 +01:00
parent bb39e5fd6e
commit 696610ed36
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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";
}
}
}