This commit is contained in:
2023-04-21 04:59:38 +08:00
parent 90de298c53
commit f33c62b693

View File

@@ -29,7 +29,7 @@ ai 繪圖服務端(快速重構)
---------------------------------------------------------------
### 获取图片列表(标准查询)
### 圖片列表
GET /api/images
```javascript
@@ -118,9 +118,6 @@ Method | URL | Info
-------|--------------------------------|------------------
GET | /api/models?user=1234 | 按用戶ID篩選
GET | /api/models?tag=xxx | 按標籤分類篩選
POST | /api/models | 創建模型
PATCH | /api/models/{model_id} | 修改模型
DELETE | /api/models/{model_id} | 刪除指定模型
POST /api/models
@@ -147,6 +144,24 @@ POST /api/models
}
```
### 模型詳情
```javascript
GET /api/models/{model_id}
{
id: 'xxxxx', // 模型ID
name: 'xxx', // 模型名稱
createdAt: '', // 創建時間
updatedAt: '', // 更新時間
}
```
PATCH /api/models/{model_id} | 修改模型
DELETE /api/models/{model_id} | 刪除指定模型
### 獲取標籤
GET /api/tags