test a hyper+json api interface