|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wordnik.swagger.core.JavaHelp
eu.scape_project.watch.rest.resource.EntityResource
public class EntityResource
REST API for Entity
operations.
Constructor Summary | |
---|---|
EntityResource()
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
createEntity(String name,
String type)
Create a new Entity . |
javax.ws.rs.core.Response |
deleteEntity(String name)
Delete an existing entity. |
javax.ws.rs.core.Response |
getEntityByName(String name)
Get a Entity by its unique name. |
javax.ws.rs.core.Response |
listEntityOfType(String type,
int start,
int max)
Get the list of Entities of a defined EntityType . |
javax.ws.rs.core.Response |
updateEntity(String name,
Entity entity)
Update an existing entity. |
Methods inherited from class com.wordnik.swagger.core.JavaHelp |
---|
getHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityResource()
Method Detail |
---|
public javax.ws.rs.core.Response getEntityByName(String name)
Entity
by its unique name. REST interface for
EntityDAO.findById(String)
.
name
- The name of the Entity
NotFoundException
if none found.public javax.ws.rs.core.Response listEntityOfType(String type, int start, int max)
EntityType
.
type
- The name of the EntityType
start
- The index of the first item to retrievemax
- The maximum number of items to retrieve
public javax.ws.rs.core.Response createEntity(String name, String type)
Entity
.
name
- The name of the entitytype
- the name of the EntityType
this entity belongs to
NotFoundException
if the type
is not found.public javax.ws.rs.core.Response updateEntity(String name, Entity entity)
name
- The name of the existing entityentity
- The new entity that will replace the existing one.
public javax.ws.rs.core.Response deleteEntity(String name)
name
- the name of the entity
NotFoundException
if the
entity to delete is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |