I am currently working in the implementation of TMF640 OpenAPI but I am facing issues when running the CTK script.
I am configuring the CTK with the following config.json:
{
"url": "http://localhost:8480/tmf-api/ServiceActivationAndConfiguration/v4/",
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"X-Service-Ids": "0-1-5-1,0-1-5-3"
},
"payloads": {
"Service": {
"POST": {
"payload": {
"@type": "Service",
"state": "active",
"category": "",
"description": "",
"feature": [],
"serviceType": "MtxOpSubscriptionCreate",
"serviceSpecification":{
"id":"1"
},
"serviceCharacteristic": [
{
"id": "1",
"name": "MtxRequestSubscriptionCreate",
"valueType": "object",
"value":
{
"Status": 1,
}
}
]
}
}
}
}
}
As you can see I am passing a header X-Service-Ids with the list of ids I want to query, for some reason the CTK is ignoring that header.
The first request that CTK triggers is precisely a GET/service retrieving the list of services, my API needs that header to be included for that request, but the header is not passed.
There are two things that look wrong:
1.- If CTK is executing the ctk/CTK-Service_Activation-4.0.0.postman_collection.json postman collection I don't understand why the first call performed is a GET/service instead o a POST/service which is the first request on that collection.
2.- Why are the headers that I am setting in config.json not being passed to the GET request?
I am able to do run CTK without any issues with TMF632 but CTK in TMF640 seems to be ignoring the headers in the config.json.
------------------------------
Eduardo Sanchez
MATRIXX Software
------------------------------