@webshop/root - v1.0.0
    Preparing search index...

    Endpoints that interact with a logged in user's shoppingcart.

    Index

    Constructors

    Properties

    _shoppingCartService: ShoppingCartService = ...

    Methods

    • Adds a shoppingItem to a logged in user's shoppingcart. Requires a valid session.

      Parameters

      • req: Request

        The http request requires the body to contain amount (number, amount of product), gameSku (string, SKU of a product to add)

      • res: Response

        The response the api could give. See swagger api documentation for the specific statuses.

      Returns Promise<void>

      Tim Denkers

    • Changes the amount of a logged in user's shoppingItem.

      Parameters

      • req: Request

        The http request requires a body containing the amount (number, what the user wants the amount of a product to be), idShoppingCartItem (number, id of shoppingItem)

      • res: Response

        The response the api could give. See swagger api documentation for the specific statuses.

      Returns Promise<void>

      Tim Denkers

    • Deletes the shoppingItem from a logged in user's shoppingCart.

      Parameters

      • req: Request

        The http request requires the body to contain idShoppingCartItem (number, id of a shoppingItem) and requires the user to have a valid session using the sessionService requirements for a session to be validated.

      • res: Response

        The response the api could give. See swagger api documentation for the specific statuses.

      Returns Promise<void>

      Tim Denkers

    • Retrieves the entire cart of a logged in user.

      Parameters

      • req: Request

        The http request requires the user to have a valid session using the sessionService requirements for a session to be validated.

      • res: Response

        The response the api could give. See swagger api documentation for the specific statuses.

      Returns Promise<void>

      Tim Denkers