mirror of
https://github.com/Hommy-master/capcut-mate.git
synced 2026-08-30 17:48:47 +08:00
86c305aa52
2. 删除多余文档。 3. 添加中英文切换开关。
127 lines
2.7 KiB
Markdown
127 lines
2.7 KiB
Markdown
# OBJS_TO_STR_LIST API Documentation
|
|
|
|
## 🌐 Language Switch
|
|
[中文版](./objs_to_str_list.zh.md) | [English](./objs_to_str_list.md)
|
|
|
|
## Interface Information
|
|
|
|
```
|
|
POST /openapi/capcut-mate/v1/objs_to_str_list
|
|
```
|
|
|
|
## Function Description
|
|
|
|
Convert object list to string list. This interface is used to convert input object list to string list format.
|
|
|
|
## More Documentation
|
|
|
|
📖 For more detailed documentation and tutorials, please visit: [https://docs.jcaigc.cn](https://docs.jcaigc.cn)
|
|
|
|
## Request Parameters
|
|
|
|
```json
|
|
{
|
|
"outputs": [
|
|
{
|
|
"output": "https://assets.jcaigc.cn/min.mp4"
|
|
},
|
|
{
|
|
"output": "https://assets.jcaigc.cn/max.mp4"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
### Parameter Description
|
|
|
|
| Parameter | Type | Required | Default | Description |
|
|
|-----------|------|----------|---------|-------------|
|
|
| outputs | array[object] |✅ | - | Data objects |
|
|
|
|
### Parameter Details
|
|
|
|
#### outputs
|
|
|
|
- **Type**: array[object]
|
|
- **Description**: Object list to convert
|
|
- **Example**: `[{"output": "https://assets.jcaigc.cn/min.mp4"}, {"output": "https://assets.jcaigc.cn/max.mp4"}]`
|
|
|
|
## Response Format
|
|
|
|
### Success Response (200)
|
|
|
|
```json
|
|
{
|
|
"infos": [
|
|
"https://assets.jcaigc.cn/min.mp4",
|
|
"https://assets.jcaigc.cn/max.mp4"
|
|
]
|
|
}
|
|
```
|
|
|
|
### Response Field Description
|
|
|
|
| Field | Type | Description |
|
|
|-------|------|-------------|
|
|
| infos | array[string] | String list |
|
|
|
|
### Error Response (4xx/5xx)
|
|
|
|
```json
|
|
{
|
|
"detail": "Error message description"
|
|
}
|
|
```
|
|
|
|
## Usage Examples
|
|
|
|
### cURL Examples
|
|
|
|
#### 1. Basic Usage
|
|
|
|
```bash
|
|
curl -X POST https://capcut-mate.jcaigc.cn/openapi/capcut-mate/v1/objs_to_str_list \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"outputs": [
|
|
{
|
|
"output": "https://assets.jcaigc.cn/min.mp4"
|
|
},
|
|
{
|
|
"output": "https://assets.jcaigc.cn/max.mp4"
|
|
}
|
|
]
|
|
}'
|
|
```
|
|
|
|
## Error Code Description
|
|
|
|
| Error Code | Error Message | Description | Solution |
|
|
|------------|---------------|-------------|----------|
|
|
| 400 | outputs is required | Missing outputs parameter | Provide a valid outputs parameter |
|
|
| 500 | Object list conversion failed | Internal processing error | Contact technical support |
|
|
|
|
## Notes
|
|
|
|
1. **Parameter Requirements**: outputs parameter is required
|
|
2. **Return Value**: Extract output fields from input object list to form string list
|
|
|
|
## Workflow
|
|
|
|
1. Validate required parameter (outputs)
|
|
2. Call service layer to handle business logic
|
|
3. Return converted string list
|
|
|
|
## Related Interfaces
|
|
|
|
- [Create Draft](./create_draft.md)
|
|
|
|
---
|
|
|
|
<div align="right">
|
|
|
|
📚 **Project Resources**
|
|
**GitHub**: [https://github.com/Hommy-master/capcut-mate](https://github.com/Hommy-master/capcut-mate)
|
|
**Gitee**: [https://gitee.com/taohongmin-gitee/capcut-mate](https://gitee.com/taohongmin-gitee/capcut-mate)
|
|
|
|
</div> |