basic rest test api