web front end codes for testing api