|
||||||||||
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.PropertyResource
public class PropertyResource
REST API for Property
operations.
Constructor Summary | |
---|---|
PropertyResource()
|
Method Summary | |
---|---|
javax.ws.rs.core.Response |
createProperty(String type,
String name,
String description)
Create a new Property . |
javax.ws.rs.core.Response |
deleteProperty(String type,
String name)
Delete an existing Property . |
javax.ws.rs.core.Response |
getPropertyByName(String type,
String name)
Get a Property. |
javax.ws.rs.core.Response |
listEntityOfType(String type,
int start,
int max)
List all properties of a EntityType . |
javax.ws.rs.core.Response |
listProperty()
List all Properties independently of the EntityType . |
javax.ws.rs.core.Response |
updateProperty(String type,
String name,
Property property)
Update an existing Property . |
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 PropertyResource()
Method Detail |
---|
public javax.ws.rs.core.Response getPropertyByName(String type, String name)
type
- The name of the EntityType
this property belongs toname
- The name of the property
Property
or throws NotFoundException
if not
foundpublic javax.ws.rs.core.Response listProperty()
EntityType
.
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
Property
filtered by the constraints above.public javax.ws.rs.core.Response createProperty(String type, String name, String description)
Property
.
type
- The name of the EntityType
that this property belongs to.name
- The name of the property, unique within the EntityType
description
- Descriptive information about the property
NotFoundException
if
the EntityType
is not found.public javax.ws.rs.core.Response updateProperty(String type, String name, Property property)
Property
.
type
- The name of the EntityType
the property belongs toname
- The name of the propertyproperty
- The new Property that should replace the existing one
public javax.ws.rs.core.Response deleteProperty(String type, String name)
Property
.
type
- The name of the EntityType
the property belongs toname
- The name of the property
Property
or throws NotFoundException
if
not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |