Fix API resource path construction