@Path(value="item") public class ItemsCreator extends Object
| Constructor and Description |
|---|
ItemsCreator() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createFileItem(InputStream stream,
String id,
String name,
String description) |
javax.ws.rs.core.Response |
createItem(String id,
String type,
String name,
String description) |
@POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
@Path(value="/{id}/create/{type:(?!FILE)[^/?$]*}")
public javax.ws.rs.core.Response createItem(@PathParam(value="id")
String id,
@PathParam(value="type")
String type,
@QueryParam(value="name")
String name,
@QueryParam(value="description")
String description)
@POST
@Consumes(value="application/octet-stream")
@Produces(value="application/json")
@Path(value="/{id}/create/FILE")
public javax.ws.rs.core.Response createFileItem(InputStream stream,
@PathParam(value="id")
String id,
@QueryParam(value="name")
String name,
@QueryParam(value="description")
String description)
Copyright © 2018. All Rights Reserved.