/** * Get a single world by it's ID * * @param id the ID * @return the world */ @RequestMapping("/{id}") @ResponseBody public WorldModel get(@PathVariable("id") final String id) { WorldModel worldModel = new WorldModel(); worldModel.setId(id); worldModel.setName("Middle Earth"); worldModel.setDescription("The world of The Hobbit and The Lord of the Rings"); worldModel.setCreationDate(OffsetDateTime.now()); worldModel.setOwner(new UserLink()); worldModel.getOwner().setId(UUID.randomUUID().toString()); worldModel.getOwner().setName("Tolkien"); return worldModel; }