Category: Spring

Returning Data Transfer Objects from a Rest Controller in Spring Boot

In this post I will cover returning a DTO (Data Transfer Object) from a Rest Controller in Spring Boot. Returning data from a REST call in a DTO is a tidy way of retrieving data from the server which otherwise would be returned as a List<Object>. Have a look at my previous post, Passing Data ...

Passing Data Transfer Objects with GET in Spring Boot

GET requests should be used to pass data to a Rest Controller when the state of the data is not being changed. This is a little tutorial on how to pass a DTO (data transfer object)  with GET requests in Spring Boot. Check out Spring's starter guide if your starting from scratch. The setup that ...