Package org.dspace.rest
Class RestReports
- java.lang.Object
-
- org.dspace.rest.RestReports
-
@Path("/reports") public class RestReports extends Object
Root of RESTful api. It provides login and logout. Also have method for printing every method which is provides by RESTful api.- Author:
- Terry Brady, Georgetown University
-
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationService
configurationService
static String
REST_RPT_URL
-
Constructor Summary
Constructors Constructor Description RestReports()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
customReport(String report_nickname, javax.ws.rs.core.UriInfo uriInfo)
Report[]
reportIndex()
Return html page with information about REST api.
-
-
-
Field Detail
-
configurationService
protected ConfigurationService configurationService
-
REST_RPT_URL
public static final String REST_RPT_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
reportIndex
@GET @Produces("application/xml") public Report[] reportIndex() throws javax.ws.rs.WebApplicationException
Return html page with information about REST api. It contains methods all methods provide by REST api.- Returns:
- HTML page which has information about all methods of REST api.
- Throws:
javax.ws.rs.WebApplicationException
-
customReport
@Path("/{report_nickname}") @GET public javax.ws.rs.core.Response customReport(@PathParam("report_nickname") String report_nickname, @Context javax.ws.rs.core.UriInfo uriInfo) throws javax.ws.rs.WebApplicationException
- Throws:
javax.ws.rs.WebApplicationException
-
-