In this tutorial, we will be discussing REST Assured framework to Test JAX-RS Web services. This tutorial is designed for RESTAssured beginners, but even experienced users may find some useful tips and tricks.
resteasy
RESTEasy is a JBoss / Red Hat project that provides various frameworks to help you build RESTful Web Services and RESTful Java applications. It is an implementation of the Jakarta RESTful Web Services, an Eclipse Foundation specification that provides a Java API for RESTful Web Services over the HTTP protocol.
Moreover, RESTEasy also implements the MicroProfile REST Client specification API.
Getting started with Jakarta RESTful Services
The latest release of RESTEasy (6.1.0) provides an implementation for Jakarta RESTful Web Services 3.1. which is a core component of Jakarta EE 10. Let’s review through this article which are the core features of Jakarta Rest Services.
Testing REST Services with Postman
Postman is a popular tool for testing APIs in a user-friendly graphical environment. You can use Postman to send API requests to any REST API and receive replies. In this article we will learn how to use it to test a JAX-RS Application which exposes CRUD Endpoints Postman in a nutshell Firstly, you need to … Read more
How to use Parameters in REST Services
In this tutorial, we will learn how to use parameters in Java API for RESTful Web Services (JAX-RS) to pass data to the server and receive data from the server.
How to validate Jakarta REST parameters
This article is a walk through the available options to perform validation of REST Endpoint parameters using Jakarta EE. We will show both Bean validation and Entity validation of a REST Service endpoint.
How to map Date and Time fields in REST applications
This article will teach you the simplest way to map Date and Time fields in an Entity when the request/response is from a REST Endpoint.
RestEasy Client API made simple
This article introduces you to an example application which uses RESTEasy Client library to access a remote REST Service.
How to solve could not find writer for content-type application/json type
In this short tutorial we will learn how to fix a common error that you can hit when deploying REST Web service that produce or consume JSON content type.
RESTEasy Basic Authentication example
In this tutorial we will demonstrate how to use a BASIC authentication in your REST Services using RESTEasy on the backend and the DefaultHttpClient on the client side.
Please note: this tutorial uses WildFly legacy security framework (Picketbox). If you want to learn how to secure JAX-RS Services using Elytron Security Framework check this article: Securing JAX-RS Services in WildFly applications
How to handle Exceptions in JAX-RS applications
This article will teach you how to handle Exceptions properly in RESTful Web services using JAX-RS API and some advanced options which are available with RESTEasy and Quarkus runtime.