@Consumes(value="application/json")
@Path(value="/projects")
public interface ProjectApi
Modifier and Type | Method and Description |
---|---|
void |
addTag(String projectId,
String tag) |
Project |
create(String name,
String description,
boolean enabled,
boolean isDomain,
String domainId,
String parentId) |
boolean |
delete(String id) |
Project |
get(String id) |
boolean |
hasTag(String projectId,
String tag) |
List<Project> |
list() |
Set<String> |
listTags(String projectId) |
void |
removeAllTags(String projectId) |
void |
removeTag(String projectId,
String tag) |
void |
setTags(String projectId,
Set<String> tags) |
Project |
update(String id,
Project project) |
@Named(value="projects:get") @GET @Path(value="/{id}") Project get(@PathParam(value="id") String id)
@Named(value="projects:create") @POST Project create(String name, @Nullable String description, boolean enabled, boolean isDomain, @Nullable String domainId, @Nullable String parentId)
@Named(value="projects:update") @Path(value="/{id}") Project update(@PathParam(value="id") String id, Project project)
@Named(value="projects:delete") @DELETE @Path(value="/{id}") boolean delete(@PathParam(value="id") String id)
@Named(value="projects:listTags") @GET @Path(value="/{projectId}/tags") Set<String> listTags(@PathParam(value="projectId") String projectId)
@Named(value="projects:hasTag") @HEAD @Path(value="/{projectId}/tags/{tag}") boolean hasTag(@PathParam(value="projectId") String projectId, @PathParam(value="tag") String tag)
@Named(value="projects:addTag") @PUT @Path(value="/{projectId}/tags/{tag}") void addTag(@PathParam(value="projectId") String projectId, @PathParam(value="tag") String tag)
@Named(value="projects:removeTag") @DELETE @Path(value="/{projectId}/tags/{tag}") void removeTag(@PathParam(value="projectId") String projectId, @PathParam(value="tag") String tag)
@Named(value="projects:setTags") @PUT @Path(value="/{projectId}/tags") void setTags(@PathParam(value="projectId") String projectId, Set<String> tags)
@Named(value="projects:removeTags") @DELETE @Path(value="/{projectId}/tags") void removeAllTags(@PathParam(value="projectId") String projectId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.