icon-search

January 2017

30.01.2017

Using Spring REST Docs for testing and documenting APIs

lauren-mancke-60627-unsplash

Have you ever seen an API documentation that’s completely out of date? Or the one that seems to be updated but examples somehow don’t work? Or the one that’s automatically generated but you can’t find anything useful in the overflow of available methods? It definitely sounds familiar to me. Fortunately, there’s a tool which helps […]

11.01.2017

Type safe JSON parsing

markus-spiske-445253-unsplash

Introduction Problems with JSON payloads A common problem when developing applications talking to external services are payloads that do not stick to the contract. When we build a typescript application consuming JSON endpoints the easiest thing to do (shown in most tutorials) is casting the payload to the expected type. This can however lead to […]

04.01.2017

Spring Web Reactive – REST Controllers

ze-zorzan-57616-unsplash

Since early 2016 the new major release of the Spring Framework has been under development. The fifth version will bring many new features and in particular a reactive version of its web framework – Spring Web Reactive. Here at Sparkbit we rely heavily on the time-tested Spring MVC module to create RESTful APIs for our […]

03.01.2017

Introduction to Unit Testing Angular 2 Components

silvio-kundt-65518-unsplash

We have already mentioned that writing automated tests for your application is important. And it doesn’t seem to be an extravagant stance on the subject as the Internet is full of similar statements. In this article, we start our adventure with unit testing Angular 2 Components. Unit tests (A.K.A. component tests – don’t confuse with […]