Add support for path in API endpoint

Solve #43