Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
API - StateProvince - add ProducesResponseType
KrzysztofPajakf96f5e0a6055
diff --git a/src/API/Grand.Api/Controllers/OData/StateProvinceController.cs b/src/API/Grand.Api/Controllers/OData/StateProvinceController.csindex b7c9641a4..bcbc97ce8 100644--- a/src/API/Grand.Api/Controllers/OData/StateProvinceController.cs+++ b/src/API/Grand.Api/Controllers/OData/StateProvinceController.cs@@ -7,6 +7,7 @@ using Microsoft.AspNetCore.Mvc;using Microsoft.AspNetCore.OData.Query;using Swashbuckle.AspNetCore.Annotations;using System.Linq;+using System.Net;using System.Threading.Tasks;namespace Grand.Api.Controllers.OData@@ -24,6 +25,9 @@ namespace Grand.Api.Controllers.OData[SwaggerOperation(summary: "Get entity from StateProvince by key", OperationId = "GetStateProvinceById")][HttpGet("{key}")]+ [ProducesResponseType((int)HttpStatusCode.Forbidden)]+ [ProducesResponseType((int)HttpStatusCode.OK)]+ [ProducesResponseType((int)HttpStatusCode.NotFound)]public async Task<IActionResult> Get(string key){if (!await _permissionService.Authorize(PermissionSystemName.Countries))@@ -39,6 +43,8 @@ namespace Grand.Api.Controllers.OData[SwaggerOperation(summary: "Get entities from StateProvince", OperationId = "GetStateProvinces")][HttpGet][EnableQuery(HandleNullPropagation = HandleNullPropagationOption.False)]+ [ProducesResponseType((int)HttpStatusCode.Forbidden)]+ [ProducesResponseType((int)HttpStatusCode.OK)]public async Task<IActionResult> Get(){if (!await _permissionService.Authorize(PermissionSystemName.Countries))