-
Method Summary
javax.ws.rs.core.Response
javax.ws.rs.core.Response
javax.ws.rs.core.Response
getList(javax.ws.rs.core.UriInfo query)
javax.ws.rs.core.Response
-
Method Details
-
getList
@GET
@Path("/services")
@Produces("text/html")
String getList(@Context
javax.ws.rs.core.UriInfo query)
-
get
@GET
@Path("/service/{id}")
@Produces("text/html")
String get(@PathParam("id")
String id)
-
create
@POST
@Path("/services/create")
@Produces("text/html")
javax.ws.rs.core.Response create(@FormParam("token")
String token,
@FormParam("name")
String name,
@FormParam("required_role")
String requiredRoleName,
@FormParam("endpoints")
String endpoints,
@FormParam("roles")
List<String> roles)
-
disable
@POST
@Path("/service/{id}/disable")
@Produces("text/html")
javax.ws.rs.core.Response disable(@PathParam("id")
String id,
@FormParam("token")
String token)
-
edit
@POST
@Path("/service/{id}/edit")
@Produces("text/html")
javax.ws.rs.core.Response edit(@FormParam("token")
String token,
@PathParam("id")
String id,
@FormParam("required_role")
String requiredRoleName,
@FormParam("endpoints")
String endpoints,
@FormParam("roles")
List<String> roles)
-
rotateAccessKey
@POST
@Path("/service/{service_id}/rotate-access-key")
@Produces("text/html")
javax.ws.rs.core.Response rotateAccessKey(@PathParam("service_id")
String serviceId,
@FormParam("token")
String token)