Uploaded image for project: 'Shop'
  1. Shop
  2. SHOP-5

Create a Cart endpoint

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None
    • Scrum Sprint 1

    Description

      CART
      POST /cart If the user is anonymous (unable to fetch the user from the underlying http session), then it creates an anonymous cart.
      Otherwise, it create a cart linked to the user id.
       
      Return a cookie storing the cart id
      false
      GET /cart Return the cart
      The cart id is taken from the cookie
      true
      DELETE /cart Delete the cart
      The cart id is taken from the cookie
      false
      POST /cart/item Update the cart by adding the cart item present in the body of the request
      The cart id is taken from the cookie
      false
      PUT /cart/item Update the cart by updating the cart item quantity (only field which can be updated)
      The cart id is taken from the cookie
      false
      DELETE /cart/item/{itemId} Update the cart by deleting the given cart item
      The cart id is taken from the cookie
      false

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              rdrangovski Riste Drangovski
              amanzoni Adrien Manzoni
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD