mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
fix(apigateway): implement V1 deleteDeployment endpoint and return correct JSON 404 error (#1019)
This commit is contained in:
1 parent
b7cf8b6ebe
commit
2da06840e9
2 files changed
+26
-2
No files matched your search
+10
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user