Open APIs

 View Only
  • 1.  [Urgent] TMF635 CTK config.json headers ignored

    Posted Sep 25, 2023 03:21

    I am currently working in the implementation of TMF635 OpenAPI but I am facing issues when running the CTK script.

    I am configuring the CTK with the following config.json:

    {
        "url": "http://localhost:8580/tmf-api/usageManagement/v4/",
        "headers": {
            "Accept": "application/json;charset=utf-8",
            "Content-Type": "application/json;charset=utf-8",
            "Authorization": "Bearer 1321321",
            "X-Service-Id": "0-1-5-1"
        },
        "payloads": {
            "Usage": {
                "POST": {
                    "payload": {
                        "usageSpecification": {
                            "id": "0-1-5-4"
                        },
                        "usageCharacteristic": [
                            {
                                "name": "name",
                                "valueType": "object",
                                "value":
                                {
                    
                                }
                            }
                        ]
                    }
                }
            },
            "UsageSpecification": {
                "POST": {
                    "payload": {
                        "name": "Usage-Specification"
                    }
                }
            }
        }
    }

    As you can see I am passing a header X-Service-Id with the id I want to query, for some reason the CTK is ignoring that header. My API needs that header to be included for that request, but the header is not passed.

    We faced a similar issue (https://engage.tmforum.org/discussion/tmf640-ctk-configjson-headers-ignored) in the past and we are hoping for an urgent fix.



    ------------------------------
    Chi Ho Chan
    MATRIXX Software
    ------------------------------


  • 2.  RE: [Urgent] TMF635 CTK config.json headers ignored

    Posted Sep 26, 2023 05:31

    Hi,

    I just pushed a fix for the ctk you can download the latest version from the api table and test again.



    ------------------------------
    Victor Mari Rodriguez
    TM Forum
    ------------------------------



  • 3.  RE: [Urgent] TMF635 CTK config.json headers ignored

    TM Forum Member
    Posted Sep 26, 2023 10:35

    Hi Victor, 

    I just downloaded the latest from the CTK TMF635 on the OpenAPI table page, ran it against our API and I still get the same result as it cannot pick up my custom request headers.

    Could you verify?



    ------------------------------
    Nuno Martins
    MATRIXX Software
    ------------------------------



  • 4.  RE: [Urgent] TMF635 CTK config.json headers ignored

    TM Forum Member
    Posted Sep 26, 2023 10:35

    Hi Victor,

    I see that the request headers continue to get ignored with the latest version. Please validate.



    ------------------------------
    Nuno Martins
    MATRIXX Software
    ------------------------------