Code2Gether-Discord / Congo

Generic web store learning project that consists of three ASP.NET Core projects
https://code2gether-congo.azurewebsites.net/
11 stars 2 forks source link

Added CartService #96

Closed henry-js closed 2 years ago

henry-js commented 2 years ago

Mostly boilerplate atm. Not sure where I should be getting the cart Guid from

pobiega commented 2 years ago

If you call the "add to cart" endpoint without a cart ID, it will create a new cart and give you the ID. You then reuse that ID when adding more things and to check out.

henry-js commented 2 years ago

Pretty sure it's working as intended now, but calling the endpoint with no guid causes a null reference exception, so perhaps the get cart api endpoint isn't implemented fully yet?

pobiega commented 2 years ago

calling the endpoint with no guid causes a null reference exception

What endpoint are you calling? GetCart doesn't generate a new cart, AddToCart does :)

valincius commented 2 years ago

Please clone this repo and make branches off of that in the future, forking makes it a little hard to check out and review your changes

henry-js commented 2 years ago

Will close this and start again