← 返回首页

🔗 Cookie Manager API 文档

认证方式

所有API请求需要在请求头中包含API密钥:

Authorization: Bearer <your-api-key>

用户认证

POST /auth/register

用户注册

{
  "username": "test_user",
  "email": "test@example.com", 
  "password": "password123"
}
POST /auth/login

用户登录

{
  "username": "test_user",
  "password": "password123"
}

Cookie管理

POST /api/cookies

上传Cookie数据

{
  "url": "https://example.com",
  "cookies": [
    {
      "name": "session_id",
      "value": "abc123",
      "domain": ".example.com",
      "path": "/",
      "secure": true,
      "httpOnly": true,
      "sameSite": "Lax"
    }
  ]
}
GET /api/cookies

获取Cookie列表

参数:page, per_page, domain, search, include_expired

GET /api/cookies/{id}

获取单个Cookie详情

DELETE /api/cookies/{id}

删除Cookie

统计信息

GET /api/stats

获取统计信息

GET /api/sessions

获取Cookie会话列表

响应格式

所有API响应都使用JSON格式:

{
  "message": "操作成功",
  "data": { ... },
  "error": "错误信息(如果有)"
}

📚 更多信息请参考项目README文档