Fix sample API call url path

Addresses issue #539