test api endpoint working, example file