remove container
DELETE
/api/v1/container/{container_id}Controller:
github.com/raghavyuva/nixopus-api/internal/features/container/controller.(*ContainerController).RemoveContainer
Middlewares:
github.com/go-fuego/fuego.defaultLogger.middlewaregithub.com/raghavyuva/nixopus-api/internal/routes.(*Router).SetupRoutes.(*Router).setupAuthentication.func2github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func1github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func2github.com/raghavyuva/nixopus-api/internal/routes.(*Router).applyMiddleware.func3
Parameters
Header Parameters
Accept
Typestring
Path Parameters
container_id*
Typestring
RequiredResponses
OK
JSON
{
"data": {
"status": "string"
},
"message": "string",
"status": "string"
}
Samples
cURL
curl -X DELETE http://localhost/api/v1/container/{container_id}JavaScript
fetch("http://localhost/api/v1/container/{container_id}", { method: "DELETE" })
.then(response => response.json())
.then(data => console.log(data));PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/v1/container/{container_id}");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Python
import requests
response = requests.delete("http://localhost/api/v1/container/{container_id}")
print(response.json())