fix(apigateway): implement GET deployment (#652)

This commit is contained in:
Ricardo Lima authored and GitHub committed 2026-04-29 22:14:11 -05:00
1 parent 483dcee157
commit c77c469ff4
2 files changed
+31 -11

No files matched your search

@@ -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,