update api to use /entity?id=ENTITY_ID instead of inventing integers for the entity_id