@Path(value="/")
public interface SourceTagAPI
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
appendTag(String id,
String tagValue)
Add a single tag to a source.
|
javax.ws.rs.core.Response |
removeDescription(String id)
Remove description from a source.
|
javax.ws.rs.core.Response |
removeTag(String id,
String tagValue)
Remove a single tag from a source.
|
javax.ws.rs.core.Response |
setDescription(String id,
String description)
Set description for a source.
|
javax.ws.rs.core.Response |
setTags(String id,
List<String> tagValuesToSet)
Sets tags for a host, overriding existing tags.
|
@PUT
@Path(value="v2/source/{id}/tag/{tagValue}")
@Produces(value="application/json")
javax.ws.rs.core.Response appendTag(@PathParam(value="id")
String id,
@PathParam(value="tagValue")
String tagValue)
id - source ID.tagValue - tag to add.@DELETE
@Path(value="v2/source/{id}/tag/{tagValue}")
@Produces(value="application/json")
javax.ws.rs.core.Response removeTag(@PathParam(value="id")
String id,
@PathParam(value="tagValue")
String tagValue)
id - source ID.tagValue - tag to remove.@POST
@Path(value="v2/source/{id}/tag")
@Consumes(value="application/json")
@Produces(value="application/json")
javax.ws.rs.core.Response setTags(@PathParam(value="id")
String id,
List<String> tagValuesToSet)
id - source ID.tagValuesToSet - tags to set.@POST
@Path(value="v2/source/{id}/description")
@Consumes(value="application/json")
@Produces(value="application/json")
javax.ws.rs.core.Response setDescription(@PathParam(value="id")
String id,
String description)
id - source ID.description - description.@DELETE
@Path(value="v2/source/{id}/description")
@Produces(value="application/json")
javax.ws.rs.core.Response removeDescription(@PathParam(value="id")
String id)
id - source ID.Copyright © 2020. All rights reserved.