trying out rest API
printing out via php and js the collection links feature as a test