checking restapi with frontend