you can specify api as a path
added a test for api as path