Groovy Documentation

org.linkedin.glu.agent.rest.resources
[Groovy] Class TagsResource

java.lang.Object
  org.restlet.resource.ServerResource
      org.linkedin.glu.agent.rest.resources.BaseResource
          org.linkedin.glu.agent.rest.resources.TagsResource

class TagsResource
extends BaseResource

Authors:
yan@pongasoft.com


Field Summary
static TagsSerializer TAGS_SERIALIZER

 
Fields inherited from class BaseResource
MODULE, log
 
Method Summary
Representation addTags(Representation representation)

add tags (ex: POST /tags/fruit;vegetable)

Representation deleteTags()

DELETE remove tags (ex: DELETE /tags/fruit;vegetable)

Representation getOrCheckTags()

GET: /tags => 200: json array of tags HEAD: /tags => 200 if has tags, 204 otherwise (only match=any makes sense here...)

Representation updateTags(Representation representation)

set tags (ex: PUT /tags/fruit;vegetable)

 
Methods inherited from class BaseResource
addResponseHeader, doInit, getAgent, getPath, getRequestArgs, getResourceMountPoint, getResponseHeader, noException, toArgs, toArgs, toRepresentation
 

Field Detail

TAGS_SERIALIZER

public static final TagsSerializer TAGS_SERIALIZER


 
Method Detail

addTags

@Post
Representation addTags(Representation representation)
add tags (ex: POST /tags/fruit;vegetable)


deleteTags

@Delete
Representation deleteTags()
DELETE remove tags (ex: DELETE /tags/fruit;vegetable)


getOrCheckTags

@Get
Representation getOrCheckTags()
GET: /tags => 200: json array of tags HEAD: /tags => 200 if has tags, 204 otherwise (only match=any makes sense here...) HEAD: /tags/fruit;vegetable?match=all => 200 if matches, 204 if does not match query string can contain: match=any (default if missing) or match=all for matching on all of them


updateTags

@Put
Representation updateTags(Representation representation)
set tags (ex: PUT /tags/fruit;vegetable)


 

Groovy Documentation