API implementation using Spring and GSON