注销当前用户会话
注销当前已登录的用户会话。
GET https://petstore3.swagger.io/api/v3/user/logout
示例
- API Key
- OAuth 2.0
cURL
GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "api_key: <YOUR_API_KEY>"
cURL
GET "https://petstore3.swagger.io/api/v3/user/logout" \
-H "accept: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>"
响应
| 状态码 | 描述 |
|---|---|
| 200 | 操作成功 |
| default | 操作成功 |
响应示例
200: 操作成功
Response
{
"message": "Successfully logged out"
}
参数
无