Ejemplo n.º 1
0
def delete_wishlist(cust_id, wishlist_id):
    # """ Delete the wishlist with the provided id"""
    """
    Delete a Wishlist
    This endpoint will delete a Wishlist based on the customer id and Wishlist id specified in the path
    ---
    tags:
      - Wishlists
    description: Deletes a wishlist from the database
    parameters:
      - name: cust_id
        in: path
        description: ID of customer who wants to delete his/her wishlist
        required: true
        type: integer
      - name: wishlist_id
        in: path
        description: ID of wishlist to be deleted
        required: true
        type: integer
    responses:
      204:
        description: Wishlist deleted
    """
    success = Customer.delete_by_id(cust_id, wishlist_id)
    return make_response('', status.HTTP_204_NO_CONTENT)