use slug or transformed name as slug in api