How to Build a Simple Validation Mechanism for JAVA Spring MVC REST Endpoint Parameters

Over the years I have seen several approaches for validating inputs (@RequestParam, @RequestBody, etc.) for REST endpoints. Many of these approaches are pretty manual and require explicitly calling a validation mechanism. But is there a way to automate this process while writing as little code as possible, still validating all inputs, and responding with friendly messages to consumers? In this Snippet, I will present a minimalistic approach for handling this issue by using javax.validation.constraints combined with Spring MVC @RestController, @ControllerAdvice, and @ExceptionHandler.

READ MORE

Consultants: The Out-of-the-Box Perspective Your Team May Need

Assuming that your team has been working on similar projects and using the same technologies for a while, it's normal to develop set views of how certain issues should be addressed. Many companies automatically start to make decisions based on what feels comfortable or what expends less energy instead of objectively analyzing processes. If your team hasn't gotten out of its comfort zone recently, it may be time to start thinking outside the box.

READ MORE

How to Improve the Relationship Between UX and Development Teams in an Agile Context - Part 2

In the first part of this series, we discussed the challenges of integrating UX activities into an Agile context mainly populated by engineers (or, to use Scrum's terminology, developers). In this second part, we'll discuss various approaches to accommodating UX activity inside a Scrum framework.

READ MORE

Understanding the Basics of Neural Networks

 For some years now, machine learning has been one of the most celebrated and explored areas of technological development. In particular, deep learning and neural networks have fascinating potential. To illustrate how neural networks function and to demonstrate their success, we'll explain a naive implementation of a simple neural network using Java.

READ MORE

API Autodiscovery in Anypoint Platform 2

Introduction

With the release of Anypoint Platform 2, there are some exciting changes in the API Autodiscovery feature. Here in this short article, I am going to describe how to make use of it in your applications.

READ MORE