replicate entity name as id if id is empty on GET /entities (possibly extremely dodgy)