{"id":26856877,"url":"https://github.com/leodeveloper/shoppingcartbasket","last_synced_at":"2026-01-28T18:33:33.873Z","repository":{"id":211418034,"uuid":"144277197","full_name":"leodeveloper/shoppingcartbasket","owner":"leodeveloper","description":"Shopping cart basket web application, web api, web api client application, Asp.net core, asp.net core web api, entityframwork core in memory","archived":false,"fork":false,"pushed_at":"2018-08-13T10:42:31.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T14:05:18.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-10T11:20:37.000Z","updated_at":"2018-08-13T10:42:32.000Z","dependencies_parsed_at":"2023-12-08T11:51:08.661Z","dependency_job_id":null,"html_url":"https://github.com/leodeveloper/shoppingcartbasket","commit_stats":null,"previous_names":["leodeveloper/shoppingcartbasket"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leodeveloper/shoppingcartbasket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2Fshoppingcartbasket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2Fshoppingcartbasket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2Fshoppingcartbasket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2Fshoppingcartbasket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leodeveloper","download_url":"https://codeload.github.com/leodeveloper/shoppingcartbasket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2Fshoppingcartbasket/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-31T00:29:52.974Z","updated_at":"2026-01-28T18:33:33.857Z","avatar_url":"https://github.com/leodeveloper.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shopping cart basket\nShopping cart basket web application, web api, web api client application, Asp.net core, asp.net core web api, entityframwork core in memory\n\nThis is prototype web api, web application and client application.\n\nThe solution consist following projects\n\nEcommerce.WebApi (Asp.net web api core)\n\nEcommerce.Web (Asp.net web application core)\n\nEcommerce.WebApi.Client (C# client liberary core)\n\nEcommerce.Model (C# Model Layer)\n\nEcommerce.Service (C# service Layer)\n\nEcommerce.Test (Xunit Test project)\n\n\n# Ecommerce.WebApi (Asp.net web api core)\n\nSettings\n\nEcommerce.WebApi Under Properties there is file called launchsettings.json\n\nIndex api    \"launchUrl\": \"api/product/\",\n \nEnviroment     \"environmentVariables\": {\"ASPNETCORE_ENVIRONMENT\": \"Development\"},\n \nBase Api Url        \"applicationUrl\": \"http://localhost:61493\"\n \n \nEcommerce.WebApi \n\nDatabase Settings is in the startup.cs\n\nUnder Configuration method, For in memory storage using Microsoft.EntityFrameworkCore.InMemory \n\nEF Core database providers do not have to be relational databases. InMemory is designed to be a general purpose database for testing, and is not designed to mimic a relational database.\n\nservices.AddDbContext\u003cEnityFramWorkDbContext\u003e(opt =\u003e opt.UseInMemoryDatabase(\"TestDb\"));\n      \nSwitch from in memory database to actuall database by change the single line of code.\n\nIn startup.cs these is a method calls AddTestData, this method is populate the data into Product table and BasketItem table\n\nThe default route for api is http://localhost:61492/api/product/\n\nyou can change the default route in startup.cs\n\n# Swegger\nSwagger is also configure in this web api project, the url for swagger is http://localhost:61492/swagger\n\n# Curl \n\nCurl command for api end points \n\ncurl -i -H \"Content-Type: application/json\" http://localhost:61492/api/Product/ProductDetail?productId=1\n\ncurl -i -H \"Content-Type: application/json\" http://localhost:61492/api/Product\n\ncurl -i -H \"Content-Type: application/json\" http://localhost:61492/api/Shoppingcart/GetBasketItems\n\ncurl -i -H \"Content-Type: application/json\" -X POST -d \"{'ProductId':1,'Product':null,'Quantity':4} \" http://localhost:61492/Api/ShoppingCart/\n\ncurl -i  -H \"Content-Type: application/json\" -X PUT -d \"{'productid':1, 'quantity'=6}\" http://localhost:61492/Api/ShoppingCart/ChangeItemQuantity/1/6\n\ncurl -i  -H \"Content-Type: application/json\" -X DELETE http://localhost:61492/Api/ShoppingCart/DeleteItemFromBasket/1\n\ncurl -i  -H \"Content-Type: application/json\" -X DELETE http://localhost:61492/Api/ShoppingCart/ClearBasket/1\n\n# Ecommerce.Web (Asp.net web application core)\n\nFront end client application for using the end point of Eccomerce.WebApi\n\nthere are three pages\n\n1. Product page \n\n   http://localhost:58458/Product display list of product\n   \n   Screen shot \n   ![alt text](https://github.com/leodeveloper/shoppingcartbasket/blob/master/Product.PNG)\n   \n2. Product detail page\n\n   http://localhost:58458/Product/ProductDetail?productId=2 display the product detail and also add this product in to basket\n   \n   Screen shot \n   ![alt text](https://github.com/leodeveloper/shoppingcartbasket/blob/master/ProductDetailPage.PNG)\n   \n3. Basket page \n\n   http://localhost:58458/Basket display the list of item in the basket also change the quantity of the basket item and remove the items    from the basket.\n   \n   Screen shot \n   ![alt text](https://github.com/leodeveloper/shoppingcartbasket/blob/master/Baket.PNG)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeveloper%2Fshoppingcartbasket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleodeveloper%2Fshoppingcartbasket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeveloper%2Fshoppingcartbasket/lists"}