Skip to main content

6 docs tagged with "rest"

View all tags

Implementing CREATE operation

In this step, you'll write a service method for creating a blog post and a test method to verify the service method.

Implementing DELETE operation

In this step, we'll write a method for deleting a blog post. By completing this step, you'll learn to map your service with the HTTP DELETE (@Delete) method, customize an exception handler, and use a blocking task executor.

Implementing READ operation

In this step, we'll implement two methods at once. One is for retrieving a single post and another for multiple blog

Implementing UPDATE operation

In this step, you'll write a method for updating a blog post. By completing this step, you'll learn to map your service with the HTTP PUT (@Put) method, use parameter injection, and convert request body into a Java object using a request object (@RequestObject).

Preparing a data object

Before we get into writing a blog service, first prepare a data object to contain blog post information. This object is used also in handling requests and sending responses.

Like Armeria?
Star us ⭐️

×