OPI Blog
Learn from experts in their fields

Browsing Tags: REST

Aug 7, 2018
Apache Kafka and Reactive Spring Boot
This post is a continuation of the two part series exploring Apache Ignite, Apache Kafka, and Reactive Spring Boot concepts. This part covers the use of Reactive Kafka consumers to return live database events to ...
Mar 1, 2018
Log your RestTemplate Request and Response without destroying the body
When you’re working with REST services, it can be very useful for debugging to be able to log both the request and the response info. Fortunately, if you’re using the Spring framework’s RestTemplate its fairly ...
Sep 28, 2017
Aggregate Services into a Single Swagger
By now most companies that have pointed their ship towards some sort of service architecture (in buzz words, microservices) have also discovered an API explorer to ease the pains of developers that are trying to ...
Designing APIs with Apiary & API Blueprint
Spending time and effort to design and build user-friendly APIs is no longer a “nice to have”. APIs should be embraced as a product in their own right. An API should empower the user, internal ...
Getting more properties through Spring HATEOAS
HATEOAS is a standard (though they use the word constraint) on a REST-based architecture. The idea is that the client can find out about everything via hyperlinks in the responses. Spring has a good overview ...
Aug 16, 2016
Enhancements to Spring RestTemplate
Recently I had to choose a client to make REST requests from a Grails 2.5 application. I decided to give the Spring RestTemplate a try. It has worked very well, but was missing some functionality ...
Jul 12, 2016
Working with the Postman REST Client
Recently at one of my clients, I found myself looking for a different setup for building and managing REST calls to various APIs I was working with. There are a multitude of services out there ...
Mapping JPA entities to external REST resources in spring-data-rest
Quickstart Clone the example project from github and run the following commands: ./gradlew bootRun curl http://localhost:8080/users curl http://localhost:8080/profiles   Great. What does it do? This example Spring Boot project, featuring spring-data-rest, demonstrates how you can ...
Aug 13, 2015
Sharing Grails HAL and JSON Renderers
Grails provides nice features for creating web services, customization is usually terse. According to the “Registering Custom Objects Marshallers” section of the Grails User Guide, custom object marshallers can registered using a simple closure. However, ...
Aug 4, 2015
Retrofit: API Integration Made Easy
Intro to Retrofit: One of the most common tasks we have as developers is to make HTTP requests and interpret their responses. Often times we need to do this using Java and until now, there hasn’t been a concrete way ...