@PutMapping("{id}") fun update(@PathVariable id: Int, @RequestBody article: Article) = with(repo) { save(findOne(id).copy( name = article.name, categories = article.categories )) }