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 ...
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 ...
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 ...
Jun 23, 2017
API,
api blueprint,
api documentation,
apiary,
hateoas,
microservice,
REST,
restful service,
restful web service,
richardson maturity model,
rmm
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 ...
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 ...
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 ...
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, ...
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 ...