In this post I will show how you can integrate Swagger into a Spring RESTful service.
For this tutorial I am using the Spring RESTful maven project from this site.
At first you have to add the swagger-springmvc and scala-library libraries to the dependencies in your maven pom.xml so that it looks like this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
Montag, 23. Februar 2015
Sonntag, 22. Februar 2015
Jackson circular dependencies on deserialization with @JsonIdentityInfo
Posted on 09:12 by Unknown
Recently I had to implement a RESTful service which had to have a CRUD interface for storing entities with circular dependencies given as JSON. Usually if you have for example an object like this:
"graph": {
"nodes": [{"name":"n1"}, {"name":"n2"}],
"transitions": [{"source": {"name":"n1"}, "target": {"name":"n2"}]
}
and having these Java classes:
@Entity
class Graph {
@Id
...
Samstag, 21. Februar 2015
Fritz!Box Phonelist Microservice with Spring Boot
Posted on 12:03 by Unknown
While making my home smart and automated I wanted to see the phonelist from my Fritz!Box 7362SL in my home visualization as well. Since I didn't find a javascript library for accessing the Fritz!Box via a Challenge-response authentication to put directly into my visualization page I later came across a Java implementation on https://github.com/grundid/fritzbox-java-api. This library is currently...
Abonnieren
Posts (Atom)