Add Product Feed Generation Endpoint #1133#1134
Open
wakku9780 wants to merge 4 commits intosimplcommerce:masterfrom
Open
Add Product Feed Generation Endpoint #1133#1134wakku9780 wants to merge 4 commits intosimplcommerce:masterfrom
wakku9780 wants to merge 4 commits intosimplcommerce:masterfrom
Conversation
hishamco
requested changes
May 24, 2025
|
|
||
|
|
||
|
|
||
| @* most importanty *@ |
| throw new Exception("Test behavior in case of error"); | ||
| } | ||
|
|
||
| /// <summary> |
| namespace SimplCommerce.WebHost.Migrations | ||
| { | ||
| /// <inheritdoc /> | ||
| public partial class waqar : Migration |
src/SimplCommerce.WebHost/Program.cs
Outdated
| Configure(); | ||
| app.Run(); | ||
|
|
||
| //hi |
| @await Component.InvokeAsync("CategoryMenu") | ||
| </div> | ||
|
|
||
|
|
| "DefaultConnection": "Server=.;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true" | ||
| }, | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=DESKTOP-8IDJ6GC\\SQLEXPRESS;Database=SimplCommerce1;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true" |
Member
There was a problem hiding this comment.
Don't change the appsettings.json
hishamco
requested changes
May 24, 2025
| <div class="collapse navbar-collapse" id="navbarMain"> | ||
| @await Component.InvokeAsync("CategoryMenu") | ||
| </div> | ||
| </div> |
| { | ||
| <li class="nav-item"><a class="nav-link" asp-area="Core" asp-controller="Account" asp-action="Login">@Localizer["Log in"]</a></li> | ||
| <li class="nav-item"><a class="nav-link" asp-area="Core" asp-controller="Account" asp-action="Register">@Localizer["Register"]</a></li> | ||
| //<li class="nav-item"><a class="nav-link" asp-area="Core" asp-controller="Product" asp-action="ProductDetail">@Localizer["Feed"]</a></li> |
| </form> | ||
| </li> | ||
| <li class="nav-item"> | ||
| <a class="nav-link" asp-area="Catalog" asp-controller="Feed" asp-action="Index"> |
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=.;Database=SimplCommerce;Trusted_Connection=True;TrustServerCertificate=true;MultipleActiveResultSets=true" | ||
| }, | ||
| "ConnectionStrings": { |
| @@ -0,0 +1 @@ | |||
| {"AdditionalData":{},"Alg":"RS256","Crv":null,"D":"RLRLUJre8czi5fIc8noc_KCxdHIJDn5Y21E4VZACAYUaLVoYMkYDqNOHABxgaPAWUx4tUEc6jay5s92ModhnMNDmxd1aYt_4rEMWAoeQpLuzIXaKziqDm5YnQuBwj7MLkGfCfbv_sVtTo9QRss-KxGiNwp7bp3GC7kkC2iz_F8xYj6NUR_WtrKCvqwX5R3D7sKneZ47zfFG1nHhnqg2wv3skCIuC4_67yv32U9OtCWtdgeQNci3BoF6lZtz_fYXjKaXp3A1LWAuvCqQa4pArhk0a1LccrCcQtbW-JBuAk1j3bpQzdcH0H1FL0Bl-vbja6quW9cr9WaIzI-czUup_rQ","DP":"RaIWsXvyDqNyKrRttG9xODemYNFjr2HobOVQjkouecVI0vZDFGYtjam3kuVgdYGaTQPaJlfZyVYJVAUcXoL7kJYs-kNOkhou53iBzX4_kXNq37-asdteAb72ojNMK9XSar3qP0BMcnzQoSCouAlh_JLR-7x3uOzx_VD3l8XFTms","DQ":"TM1RZcRqUvcO88GyG37IjLFufKTVtKhNDsI8LiplJ0iA4bh9UBf4XZw1JSbXmHkM5mxx2kYhn62p2Laa4awsW_c0mN0MvoYCGIGRhUlOZr7en4iPm9B9q-ktXdJ69O9sDPhghOvLzAegW28I2HJItT6LkdpXrOG_nYtG2TsQs40","E":"AQAB","K":null,"KeyId":"0AD55BF91BD1B5683FB6C6497CDAFCD8","Kid":"0AD55BF91BD1B5683FB6C6497CDAFCD8","Kty":"RSA","N":"z4tSgQvmnUqYgy4i9Vtud9YoiNOFJSapKQF4i7cqZEP20zLjS4izoPooL7Yvhan4OeuLQbJdudQ2_qhkJp8leq9py640p3IQl-7wwwBC-uUJFn-nso-ILzh5CFDAk67_Fb1FIUUU_AkS-eVfrDARaoilPJ-oGAnYd77IhNGI8qeYxPbaTTqLm3cGUdFhNxHeUdZirDHDCb8riW2swuEKrFVkfaMQTRh2RQeszRAK_3yZ-oW-rLRMSxsdZ4dPy_Ewa6TvgPeU-3wK9jpmYO2bNE_s8EkSLu8Vp1eY6xOB1hbuwJNLDtdRNcyPXu2HhBvlJH1cRLobDNGPKOtRu_EZ6Q","Oth":null,"P":"2v2iEPXu6CyHjP-TN7may3gdStj6UlnyJxx08fFwlptiOAgI4K1ilRorUr-02nJRk-WaL-kBNMj16jyqms2laFrgZZ9H5RTPbzr4P5YFYIIS7sU_d9y3f1Fdr1BCnw_J9FVqQ6uspV30Wnrk0pW5x8VPjMzNnPgjA7Wdgrzgqgc","Q":"8p54INiWiXtMK71wFYgO8wS0IuNs7clhfzbAKMC893Tom0zQsll-TeU7a5PdJOdctteNxIW2R7WvLe8dP6L7yBIryD6oAzFkJ9QYd8eUM2X3vMNaG_zb_2S7jTB0lBso2W5o2raWZPsxOVKnqnNEbijtt6nWlAuBuy4U1fH04I8","QI":"ozeVgsQSv3ny7U9JmOLgQ5tPFLGqv4wv0lSyXGJuFftpzZEbGO1Y-JIVogB6WI-Ojff1YqqtxEdOHjfHNuZWLmV7z8gS1ByrUWLWDHfP1NaA50OvLJR-5wTXl6y9endMUxrDGr7QdZwyhscv_hfuu9JLkms377szloAbj-BmwEs","Use":null,"X":null,"X5t":null,"X5tS256":null,"X5u":null,"Y":null,"KeySize":2048,"HasPrivateKey":true,"CryptoProviderFactory":{"CryptoProviderCache":{},"CustomCryptoProvider":null,"CacheSignatureProviders":true,"SignatureProviderObjectPoolCacheSize":32}} No newline at end of file | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #1133
🛠️ What was the issue?
Product feed endpoint was not available earlier, making it difficult to access a structured feed of all products.
✅ What has been done?
Implemented a new endpoint to generate a structured product feed.
Created a Razor view (Feed/Index.cshtml) to display the product list.
Handled edge cases like null images and HTML in descriptions.
Applied basic styling to make product listings clean and readable.
Now the feed displays all products with name, description, image, and price — and can be accessed easily.