<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Request-Handling on Devops Monk</title><link>https://devops-monk.com/tags/request-handling/</link><description>Recent content in Request-Handling on Devops Monk</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 03 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devops-monk.com/tags/request-handling/index.xml" rel="self" type="application/rss+xml"/><item><title>Handling Requests: Path Variables, Query Params, and Request Bodies</title><link>https://devops-monk.com/tutorials/spring-boot/spring-boot-request-handling/</link><pubDate>Sun, 03 May 2026 00:00:00 +0000</pubDate><guid>https://devops-monk.com/tutorials/spring-boot/spring-boot-request-handling/</guid><description>A REST API receives data in many places: URL path, query string, body, headers, cookies. This article covers every way to extract that data in Spring MVC.
@PathVariable — Extract from URL Use @PathVariable when the data is part of the URL path:
// URL: GET /api/orders/550e8400-e29b-41d4-a716-446655440000 @GetMapping(&amp;#34;/{id}&amp;#34;) public OrderResponse getOrder(@PathVariable UUID id) { return orderService.findById(id) .map(OrderResponse::from) .orElseThrow(() -&amp;gt; new OrderNotFoundException(id)); } Spring automatically converts the string segment to the parameter type (UUID, Long, int, etc.</description></item></channel></rss>