> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kasoftware.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API 操作

> 使用 API 端口上的自定义操作扩展 API 操作。

使用操作可以扩展资源上的操作集，并在服务器上执行不相关的操作。操作必须作为 [HTTP POST](./api-resources#post) 请求执行。以下是一个操作调用示例：

```
POST http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/WashCar/
{
  Wax: "Wax_1"
}
```

这是相应的响应：

```json theme={null}
{"Complete": "Complete_1"} 
```

### 使用 URL 参数作为输入

如果客户端不支持 HTTP POST 方法，可以使用 URL 参数 `@x-http-method` 调用操作。然后可以将操作的输入指定为附加 URL 参数。例如：

`http://MyServer:MyPort/connector/MyAPIPortName/api.rsc/WashCar?@x-http-method=POST&URLparam1=my_url_parameter1&urlparam2=my_url_param2`
