Skip to content
Tagged articles

Multi-device API

1 articles · Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 19, 2026 · Backend Development

Single Spring Boot Interface Serves Multiple Device Types with Dynamic Field Filtering

This article demonstrates how to build one Spring Boot 3.5.0 REST endpoint that automatically returns different JSON fields for desktop, mobile, tablet, and unknown clients by combining classpath scanning, a custom ResponseBodyAdvice, Jackson @JsonFilter, and YAUAA user-agent parsing.

Dynamic field filteringJackson JsonFilterMulti-device API
0 likes · 9 min read
Single Spring Boot Interface Serves Multiple Device Types with Dynamic Field Filtering