added link generation suppert into the api