mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
[DS-2784] redundant annotation deleted
This commit is contained in:
@@ -29,7 +29,6 @@ import org.dspace.eperson.service.EPersonService;
|
||||
import org.dspace.rest.common.Status;
|
||||
import org.dspace.rest.common.User;
|
||||
import org.dspace.rest.exceptions.ContextException;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Root of RESTful api. It provides login and logout. Also have method for
|
||||
@@ -38,14 +37,11 @@ import org.springframework.stereotype.Component;
|
||||
* @author Rostislav Novak (Computing and Information Centre, CTU in Prague)
|
||||
*
|
||||
*/
|
||||
@Component
|
||||
@Path("/")
|
||||
public class RestIndex {
|
||||
protected EPersonService epersonService = EPersonServiceFactory.getInstance().getEPersonService();
|
||||
private static Logger log = Logger.getLogger(RestIndex.class);
|
||||
|
||||
@javax.ws.rs.core.Context public ServletContext servletContext;
|
||||
|
||||
/**
|
||||
* Return html page with information about REST api. It contains methods all
|
||||
* methods provide by REST api.
|
||||
@@ -54,7 +50,7 @@ public class RestIndex {
|
||||
*/
|
||||
@GET
|
||||
@Produces(MediaType.TEXT_HTML)
|
||||
public String sayHtmlHello() {
|
||||
public String sayHtmlHello(@Context ServletContext servletContext) {
|
||||
// TODO Better graphics, add arguments to all methods. (limit, offset, item and so on)
|
||||
return "<html><title>DSpace REST - index</title>" +
|
||||
"<body>"
|
||||
|
Reference in New Issue
Block a user