fix(apigateway): implement V1 deleteDeployment endpoint and return correct JSON 404 error (#1019)

This commit is contained in:
iam-ssrivastav authored and GitHub committed 2026-05-24 14:12:53 -05:00
1 parent b7cf8b6ebe
commit 2da06840e9
2 files changed
+26 -2

No files matched your search

@@ -523,6 +523,16 @@ public class ApiGatewayController {
.type(MediaType.APPLICATION_JSON).build();
}
@DELETE
@Path("/restapis/{apiId}/deployments/{deploymentId}")
public Response deleteDeployment(@Context HttpHeaders headers,
@PathParam("apiId") String apiId,
@PathParam("deploymentId") String deploymentId) {
String region = regionResolver.resolveRegion(headers);
service.deleteDeployment(region, apiId, deploymentId);
return Response.noContent().build();
}
@POST
@Path("/restapis/{apiId}/stages")
public Response createStage(@Context HttpHeaders headers,