I've been working on a web service that I've been building in Spring Boot, however one issue I've come across is that when Spring Boot comes across a problem, the structure of the JSON response it generates doesn't match the structure of errors I'm generating in endpoints. The problem with this is that the clients of the service are required to interpret multiple error response structures, which really is unnecessary. The structure of a default error generated by Spring Boot might look something like this; { "timestamp": 1507556642643, "status": 400, "error": "Bad ...

Read More

A nice short post today. I'm building an API Blueprint for a project I'm working on. If you don't know what API blueprint is I would suggest you checkout the API Blueprint website. I would also recommend checking out a post by Phil Sturgeon on API  Blueprint, as it's what got me interested in using it and was helpful in helping me get to grips with it, see the post HTTP Documentation with API Blueprint. In the past I've been writing my own API documents, hard coded with all the styling. They look great and are easy to understand, but from ...

Read More

When you're working on a project, it's not unusual for a developer to make regularly changes to your layouts and views. The problem I've found with Laravel is it creates a cache of both views and layouts merged as one PHP file, although great for production sites, not so great in development. When you make a change to a view or layout, upload it to your server you may find that you don't see your changes, forcing you to log into FTP and clear the cache from the folder /storage/framework/views. Although this solution works, it's both time consuming and annoying. There ...

Read More

SIGNUP TO THE NEWSLETTER

Get useful tips on web application development and software engineering.