Using slug in api