Open APIs

 View Only
  • 1.  TMF_663 Shopping Cart API - POST /shoppingCart

    TM Forum Member
    Posted Nov 08, 2018 06:36
    Edited by Mihaela Bordean Nov 08, 2018 06:50
    Hello,

    Create Shopping Cart API operation, mentions cartItem as a mandatory attribute that has to be sent in request - in both API specification and conformance documents, but there is a contradiction in the first test case from conformance document , more exactly :
     
    "Send a POST message to {apiRoot}/shoppingCart/ with the following contents in the BODY
    {
    }
    Note: there are no mandatory fields for the creation."

    My question is, if it's correct and compliant a POST request without any cartItem attributes sent? The use case would be, to create an empty shopping cart resource.

    ------------------------------
    Mihaela Bordean
    IBM Corporation
    ------------------------------


  • 2.  RE: TMF_663 Shopping Cart API - POST /shoppingCart

    Posted Nov 09, 2018 09:37
    ​Hello Mihaela,

    I believe you can create empty shopping carts without cart items.

    Thanks,
    Arpad

    ------------------------------
    Arpad Simon
    Ericsson Inc.
    ------------------------------



  • 3.  RE: TMF_663 Shopping Cart API - POST /shoppingCart

    TM Forum Member
    Posted Nov 12, 2018 03:38
    Hi
    The initial design was that cart must be created with at list one item, but in second thought way we need to limit it. cart can be empty, so what nit to allow creation on empty cart. I will raise JIRA item to change this restriction.

    ------------------------------
    Jacob Avraham
    Amdocs Management Limited
    ------------------------------



  • 4.  RE: TMF_663 Shopping Cart API - POST /shoppingCart

    TM Forum Member
    Posted Nov 12, 2018 04:23
    Hi.

    Indeed, I think the only change that have to be made is to mark cartItem as an optional attribute, instead of being mandatory (as is now).

    Thanks everyone,

    ------------------------------
    Mihaela Bordean
    IBM Corporation
    ------------------------------



  • 5.  RE: TMF_663 Shopping Cart API - POST /shoppingCart

    TM Forum Member
    Posted Jan 13, 2019 12:36
    I created a JIRA Issue AP-1151 to make the cartItem optional in the shopping cart

    ------------------------------
    Jacob Avraham
    Amdocs Management Limited
    ------------------------------