kytos-ng / sdntrace_cp

MIT License
1 stars 6 forks source link

feature: Remove parameters `last_id` and `traces` & `/{trace_id}` from openapi.yml #90

Closed gretelliz closed 1 year ago

gretelliz commented 1 year ago

Closes #16 Closes #17

Summary

Remove last_id and traces since they aren't being used as #16 mentioned. Remove GET /api/amlight/sdntrace_cp/trace/{trace_id} since it does not have an implementation.

Local Tests

/traces continues working well: Example:

[
    {
        "trace": {
            "switch": {
                "dpid": "00:00:00:00:00:00:00:01",
                "in_port": 1
            }
        }
  }
]
{
    "result": [
        [
            {
                "dpid": "00:00:00:00:00:00:00:01",
                "port": 1,
                "time": "2023-04-10 11:41:30.778149",
                "type": "starting"
            },
            {
                "dpid": "00:00:00:00:00:00:00:02",
                "out": null,
                "port": 2,
                "time": "2023-04-10 11:41:30.778206",
                "type": "incomplete"
            }
        ]
    ]
}

End-to-End Tests

N/A