注销当前用户会话
注销当前用户会话。
GET https://petstore3.swagger.io/api/v3/user/logout
示例
- API Key
- OAuth 2.0
cURL
curl -X GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
curl -X GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
响应
| 状态码 | 描述 |
|---|---|
| 200 | 操作成功 |
| default | 意外错误 |
响应正文
成功注销时,服务器返回 200 状态码,且不返回响应正文。
参数
无