Yuri Mednikov

Tag: REST API

Testing Spring Webflux router functions

Router functions play a similar role in Spring Webflux as controllers in Spring MVC. Both are responsible for handling HTTP requests/responses. However, compare to controllers, new approach is not represented by a single…

Validation for Spring Webflux APIs with Yavi

In Spring MVC a server-side validation was implemented using annotations. We could just put @Valid before the body payload in the controller method and Spring did all dirty work for us. On the…

Some thoughts on server side validation with Vertx and a bit of Vavr

Eclipse Vertx is a robust technology to build reactive microservices or serverless functions. When you develop such applications, the role of server side validation rises. In traditional web applications we combine both client-side…

Server side validation in Javalin

When you are working on any somehow complex application, you need to enable validation. For example, if user submits a form or a request, your app should check, that data is in an…

Home made JWT authentication for Javalin

An authentication with tokens became a must-have feature for modern web apps. It suits natively to single page applications and mobile applications. While Spring is de facto standard in Java ecosystem, there are…

Simple email notification microservice using Vertx

Almost any more or less complex application has to deliver notifications. As usual, it is done via traditional emails, especially in cases of password reset messages or transactional notifications etc. There is a…

Error handling in Spring Webflux

The topic of error handling in web applications is very important. From a client perspective it is essential to know on how was the request proceeded and in case of any error is…

Two-factor authentication for Spring Webflux APIs

Multi-factor authentication became a common practice for many cases, especially for enterprise ones, or those that deal with sensitive data (like finance apps). Moreover, MFA is enforced (especially in the EU) by law…