Another problem with slugs in netbox is that they're not unique by themselves. For example: a rack group has a name and a slug, but I can have:
Site Foo, rack group Management
Site Bar, rack group Management
So any RESTful API which used slugs would have to have strict compound paths such as
/sites/foo/rack-groups/management/
/sites/bar/rack-groups/management/
i.e. the path requires both the site slug and the rack-group slug to select a single rack-group. Any other object which referenced a rack-group would have to construct a hyperlink of similar form.
At this point, I think it's a lot simpler just to have /rack-groups/123/ and be done with it.
I also think it's not great practice to hard-code an *attribute* of an object as part of its *identity*. Suppose in future you wanted to have a rack group which spanned sites, or was not associated with any site; you'd break the API.
Regards,
Brian.