From 429000b8a2de7bf410fbbbfec0f413f13c63fce2 Mon Sep 17 00:00:00 2001 From: Tommy Marshment-Howell Date: Mon, 11 Mar 2019 10:58:41 -0500 Subject: [PATCH] Fix bug with customerId route variable --- Nop.Plugin.Api/Controllers/OrdersController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Nop.Plugin.Api/Controllers/OrdersController.cs b/Nop.Plugin.Api/Controllers/OrdersController.cs index 0348d21..b5f6981 100644 --- a/Nop.Plugin.Api/Controllers/OrdersController.cs +++ b/Nop.Plugin.Api/Controllers/OrdersController.cs @@ -212,7 +212,7 @@ public IActionResult GetOrderById(int id, string fields = "") /// OK /// Unauthorized [HttpGet] - [Route("/api/orders/customer/{customer_id}")] + [Route("/api/orders/customer/{customerId}")] [ProducesResponseType(typeof(OrdersRootObject), (int)HttpStatusCode.OK)] [ProducesResponseType(typeof(string), (int)HttpStatusCode.Unauthorized)] [GetRequestsErrorInterceptorActionFilter]