@Path(value="resources") public class XMLResources extends Object
| Constructor and Description |
|---|
XMLResources() |
| Modifier and Type | Method and Description |
|---|---|
String |
createResource(String collection,
String res,
javax.servlet.http.HttpServletRequest request) |
String |
deleteResource(String collection,
String id) |
org.gcube.common.resources.gcore.Resource |
getResource(String id) |
String |
updateResource(String id,
String collection,
String res,
javax.servlet.http.HttpServletRequest request) |
@Consumes(value="text/xml")
@POST
@Path(value="{collection}")
public String createResource(@PathParam(value="collection")
String collection,
String res,
@Context
javax.servlet.http.HttpServletRequest request)
@DELETE
@Path(value="{collection}/{id}")
public String deleteResource(@PathParam(value="collection")
String collection,
@PathParam(value="id")
String id)
@Consumes(value="text/xml")
@PUT
@Path(value="{collection}/{id}")
public String updateResource(@PathParam(value="id")
String id,
@PathParam(value="collection")
String collection,
String res,
@Context
javax.servlet.http.HttpServletRequest request)
@Produces(value="application/xml")
@GET
@Path(value="{id}")
public org.gcube.common.resources.gcore.Resource getResource(@PathParam(value="id")
String id)
Copyright © 2020. All Rights Reserved.