adding dynamic endpoints from json file. not finished