---
title: "Interface: BackendV0"
description: Docker extension API reference
keywords: Docker, extensions, sdk, API, reference
aliases:
- /desktop/extensions-sdk/dev/api/reference/interfaces/BackendV0/
- /extensions/extensions-sdk/dev/api/reference/interfaces/BackendV0/
---
## Container Methods
### execInContainer
▸ **execInContainer**(`container`, `cmd`): `Promise`<[`ExecResultV0`](ExecResultV0.md)\>
Executes a command inside a container.
```typescript
const output = await window.ddClient.backend.execInContainer(container, cmd);
console.log(output);
```
> [!WARNING]
>
> It will be removed in a future version.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `container` | `string` | - |
| `cmd` | `string` | The command to be executed. |
#### Returns
`Promise`<[`ExecResultV0`](ExecResultV0.md)\>
___
## HTTP Methods
### get
▸ **get**(`url`): `Promise`<`unknown`\>
Performs an HTTP GET request to a backend service.
```typescript
window.ddClient.backend
.get("/some/service")
.then((value: any) => console.log(value));
```
> [!WARNING]
>
> It will be removed in a future version. Use [get](HttpService.md#get) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `url` | `string` | The URL of the backend service. |
#### Returns
`Promise`<`unknown`\>
___
### post
▸ **post**(`url`, `data`): `Promise`<`unknown`\>
Performs an HTTP POST request to a backend service.
```typescript
window.ddClient.backend
.post("/some/service", { ... })
.then((value: any) => console.log(value));
```
> [!WARNING]
>
> It will be removed in a future version. Use [post](HttpService.md#post) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `url` | `string` | The URL of the backend service. |
| `data` | `any` | The body of the request. |
#### Returns
`Promise`<`unknown`\>
___
### put
▸ **put**(`url`, `data`): `Promise`<`unknown`\>
Performs an HTTP PUT request to a backend service.
```typescript
window.ddClient.backend
.put("/some/service", { ... })
.then((value: any) => console.log(value));
```
> [!WARNING]
>
> It will be removed in a future version. Use [put](HttpService.md#put) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `url` | `string` | The URL of the backend service. |
| `data` | `any` | The body of the request. |
#### Returns
`Promise`<`unknown`\>
___
### patch
▸ **patch**(`url`, `data`): `Promise`<`unknown`\>
Performs an HTTP PATCH request to a backend service.
```typescript
window.ddClient.backend
.patch("/some/service", { ... })
.then((value: any) => console.log(value));
```
> [!WARNING]
>
> It will be removed in a future version. Use [patch](HttpService.md#patch) instead.
#### Parameters
| Name | Type | Description |
| :------ | :------ | :------ |
| `url` | `string` | The URL of the backend service. |
| `data` | `any` | The body of the request. |
#### Returns
`Promise`<`unknown`\>
___
### delete
▸ **delete**(`url`): `Promise`<`unknown`\>
Performs an HTTP DELETE request to a backend service.