test of rest api