@Path(value="json/doi") public class JSONBasedDOI extends Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
JSONBasedDOI() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDOI(String id,
String ver,
String doi,
String url,
String email,
String comment) |
javax.ws.rs.core.Response |
defaultDOI() |
javax.ws.rs.core.Response |
getDOIsByIDAndVersion(String id,
String version) |
javax.ws.rs.core.Response |
updateDOI(String id,
String ver,
String url,
String email,
String comment) |
@GET @Produces(value="application/json") public javax.ws.rs.core.Response defaultDOI() throws org.json.JSONException
org.json.JSONException
@Path(value="{id : (.+)?}/{version : (.+)?}") @GET @Produces(value="application/json") public javax.ws.rs.core.Response getDOIsByIDAndVersion(@PathParam(value="id") String id, @PathParam(value="version") String version) throws org.json.JSONException
id
- version
- org.json.JSONException
@POST @Path(value="/add") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response createDOI(@FormParam(value="LOGICAL_ID") String id, @FormParam(value="Version") String ver, @FormParam(value="Doi") String doi, @FormParam(value="URL") String url, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
@POST @Path(value="/update") @Produces(value="application/json") @Consumes(value="application/x-www-form-urlencoded") public javax.ws.rs.core.Response updateDOI(@FormParam(value="LOGICAL_ID") String id, @FormParam(value="Version") String ver, @FormParam(value="URL") String url, @FormParam(value="Email") String email, @FormParam(value="Comment") String comment) throws IOException
IOException
Copyright © 2019. All rights reserved.