@PathPrefix(value="/x/comment") public final class CommentWebServices extends Object implements io.vertigo.vega.webservice.WebServices
| Constructor and Description |
|---|
CommentWebServices() |
| Modifier and Type | Method and Description |
|---|---|
List<Comment> |
getComments(String keyConcept,
String id)
Gets comments for keyConcept.
|
Map<String,Object> |
getConfig()
Returns config.
|
String |
getHelp()
Returns help.
|
Map<String,Object> |
getStats()
Returns stats.
|
String |
getStatus()
Returns status (code 200 or 500)
|
Comment |
publishComment(Comment comment,
String keyConcept,
String id)
Publishes a new comment.
|
Comment |
updateComment(String uuid,
Comment comment)
Updates a comment.
|
@GET(value="/api/comments") public List<Comment> getComments(@QueryParam(value="concept") String keyConcept, @QueryParam(value="id") String id)
keyConcept - KeyConcept typeid - KeyConcept id@POST(value="/api/comments") public Comment publishComment(@ExcludedFields(value="uuid") Comment comment, @QueryParam(value="concept") String keyConcept, @QueryParam(value="id") String id)
comment - Comment msgkeyConcept - KeyConcept typeid - KeyConcept id@PUT(value="/api/comments/{uuid}")
public Comment updateComment(@PathParam(value="uuid")
String uuid,
Comment comment)
uuid - Comment uuidcomment - Comment msg@GET(value="/status") @AnonymousAccessAllowed public String getStatus()
@GET(value="/stats") @AnonymousAccessAllowed public Map<String,Object> getStats()
@GET(value="/config") @AnonymousAccessAllowed public Map<String,Object> getConfig()
@GET(value="/help") @AnonymousAccessAllowed public String getHelp()
Copyright © 2019. All Rights Reserved.