Skip to main content

5 docs tagged with "request"

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 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 ⭐️

×