Commit 6bb15494 authored by Alessio Carenini's avatar Alessio Carenini
Browse files

Added "update" method

parent 3dc8059a
......@@ -102,6 +102,24 @@ public interface ChoreographyApi {
@ApiParam(name = "choreography", value = "Choreography specifications", required = true)
String choreography);
@POST
@Path("/update/{choreography_id}")
@Consumes(MediaType.APPLICATION_JSON)
@ApiOperation(
value = "Deploy a choreography onto a cloud environment.",
response = org.apache.brooklyn.rest.domain.TaskSummary.class
)
@ApiResponses(value = {
@ApiResponse(code = 404, message = "Undefined entity or location"),
@ApiResponse(code = 412, message = "Choreography already registered")
})
public Response update(
@ApiParam(name = "choreography_id", value = "Choreography ID", required = true)
@PathParam("choreography_name") String choreography_name,
@ApiParam(name = "choreography", value = "Choreography specifications", required = true)
String choreography);
@POST
@Path("/resize/{choreography_name}")
@Consumes(MediaType.APPLICATION_JSON)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment