@Put("/blogs/:id")
    public HttpResponse updateBlogPost(@Param int id, @RequestObject BlogPost blogPost) {
        final BlogPost oldBlogPost = blogPosts.get(id);
        if (oldBlogPost == null) {
            return HttpResponse.of(HttpStatus.NOT_FOUND);
        }
        final BlogPost newBlogPost = new BlogPost(id, blogPost.getTitle(), blogPost.getContent(),
                                                  oldBlogPost.getCreatedAt(), blogPost.getCreatedAt());
        blogPosts.put(id, newBlogPost);
        return HttpResponse.ofJson(newBlogPost);
    }
Updates the {@link BlogPost} whose {@link BlogPost#getId()} is the {@code :id} in the path parameter.
examples/tutorials/rest-api-annotated-service/src/main/java/example/armeria/server/blog/BlogService.java