Skip to content

Commit 696610e

Browse files
committed
Fix dotnet-architecture#129 Post_update_product_price_and_catalog_and_basket_list_modified test failing
1 parent bb39e5f commit 696610e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/Services/Catalog/Catalog.API/Controllers/CatalogController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public async Task<IActionResult> CatalogBrands()
130130
return Ok(items);
131131
}
132132

133+
//POST api/v1/[controller]/edit
133134
[Route("edit")]
134135
[HttpPost]
135136
public async Task<IActionResult> EditProduct([FromBody]CatalogItem product)
@@ -164,6 +165,7 @@ public async Task<IActionResult> EditProduct([FromBody]CatalogItem product)
164165
return Ok();
165166
}
166167

168+
//POST api/v1/[controller]/create
167169
[Route("create")]
168170
[HttpPost]
169171
public async Task<IActionResult> CreateProduct([FromBody]CatalogItem product)
@@ -184,6 +186,7 @@ public async Task<IActionResult> CreateProduct([FromBody]CatalogItem product)
184186
return Ok();
185187
}
186188

189+
//DELETE api/v1/[controller]/id
187190
[Route("{id}")]
188191
[HttpDelete]
189192
public async Task<IActionResult> DeleteProduct(int id)

test/Services/FunctionalTests/Services/Catalog/CatalogScenariosBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static string ProductByName(string name)
3434

3535
public static class Post
3636
{
37-
public static string UpdateCatalogProduct = "api/v1/catalog";
37+
public static string UpdateCatalogProduct = "api/v1/catalog/edit";
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)