@@ -0,0 +1,733 @@
+package com.github.vergnes.albumindexer.web;%0A%0Aimport com.github.vergnes.albumindexer.domain.Album;%0Aimport com.github.vergnes.albumindexer.repository.AlbumRepository;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport javax.inject.Inject;%0A%0A/**%0A * Created by denis.vergnes on 23/08/2015.%0A */%0A@RestController%0A@RequestMapping(%22/api%22)%0Apublic class AlbumController %7B%0A%0A%0A    @Inject%0A    private AlbumRepository repository;%0A%0A    @RequestMapping(%22/album%22)%0A    public Album getAlbum(String id) %7B%0A        return repository.findOne(id);%0A    %7D%0A%0A    @RequestMapping(%22/albums%22)%0A    public Iterable%3CAlbum%3E getAlbums() %7B%0A        return repository.findAll();%0A    %7D%0A%0A%0A%7D%0A

add API for debugging purpose