Files

32 lines
704 B
Plaintext
Raw Permalink Normal View History

2026-06-21 17:50:24 +08:00
### 创建示例数据(需要 JWT
POST http://127.0.0.1:12426/Sample/v1/sample/demo
Content-Type: application/json
Authorization: Bearer {{token}}
{
"name": "Alice",
"age": 25
}
### 列表查询
GET http://127.0.0.1:12426/Sample/v1/sample/demo?page=1&size=20
Authorization: Bearer {{token}}
### 详情查询
GET http://127.0.0.1:12426/Sample/v1/sample/demo/{{identity}}
Authorization: Bearer {{token}}
### 更新
PUT http://127.0.0.1:12426/Sample/v1/sample/demo/{{identity}}
Content-Type: application/json
Authorization: Bearer {{token}}
{
"name": "Alice Updated",
"age": 26
}
### 删除
DELETE http://127.0.0.1:12426/Sample/v1/sample/demo/{{identity}}
Authorization: Bearer {{token}}