api end point to retrieve list of connections

Please make the open { on the line before