mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(apigateway): implement GET deployment (#652)
This commit is contained in:
1 parent
483dcee157
commit
c77c469ff4
2 files changed
+31
-11
No files matched your search
+10
@@ -442,6 +442,16 @@ public class ApiGatewayController {
|
||||
return Response.ok(root.toString()).type(MediaType.APPLICATION_JSON).build();
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/restapis/{apiId}/deployments/{deploymentId}")
|
||||
public Response getDeployment(@Context HttpHeaders headers,
|
||||
@PathParam("apiId") String apiId,
|
||||
@PathParam("deploymentId") String deploymentId) {
|
||||
String region = regionResolver.resolveRegion(headers);
|
||||
return Response.ok(toDeploymentNode(service.getDeployment(region, apiId, deploymentId)).toString())
|
||||
.type(MediaType.APPLICATION_JSON).build();
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/restapis/{apiId}/stages")
|
||||
public Response createStage(@Context HttpHeaders headers,
|
||||
|
||||
Reference in new issue
Block a user