package org.demyo.web.controller.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.demyo.model.Author;
import org.demyo.service.IAuthorService;

@Controller
@RequestMapping("/api/authors")
public class AuthorAPIController extends AbstractModelAPIController<Author> {
	private final IAuthorService service;

	@Autowired
	public AuthorAPIController(IAuthorService service) {
		super(Author.class);
		this.service = service;
	}

	@Override
	protected IAuthorService getService() {
		return service;
	}

}

@@ -126,29 +126,42 @@
 ork.
-stereotype.Controller
+web.bind.annotation.RequestMapping
 ;%0Aim
@@ -207,28 +207,28 @@
 ation.Re
-questMapping
+stController
 ;%0A%0Aimpor
@@ -295,17 +295,21 @@
 rvice;%0A%0A
-
 @
+Rest
 Controll

Use the Spring shorthand annotations for binding REST controllers