kytos-ng / sdntrace_cp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`PUT /api/amlight/sdntrace_cp/trace` actual response data structure is different from the OpenAPI spec

viniarck opened this issue · comments

This PUT /api/amlight/sdntrace_cp/trace endpoint is returning this data structure shape:

{
    "result": [
        {
            "dpid": "00:00:00:00:00:00:00:01",
            "port": 1,
            "time": "2022-01-25 13:44:52.387021",
            "type": "starting"
        }
    ]
}

but, it's documented that it was supposed to return:

{
  "result": {
    "trace_id": 30001
  }
}

This will impact clients that are relying on this spec. cc'ing also @ajoaoff @italovalcy to double check and assess potential impacts that this might have on mef_eline on this part here related to the consistency check