logout接口
退出登录,返回到登录界面。
接口原型
协议 |
HTTP/HTTPS POST |
URL |
ip:[port]/sc_cloud/logout |
数据格式 |
响应消息:Content-Type: application/json |
请求Cookies
名称 |
描述 |
mwcloud-sid |
用于标识当前登录的字符串 |
mwcloud-uid |
当前登录用户名 |
请求示例
POST /sc_cloud/logout HTTP/1.1
Content-Length: 0
Accept: application/json, text/plain, */*
Cookie: mwcloud-sid=OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP; mwcloud-uid=Admin
响应参数
参数 |
描述 |
Content-Type |
取值为:'application/json; charset=UTF-8' |
Response Body
响应示例
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 53
Set-Cookie: mwcloud-sid=; Path=/; Domain=127.0.0.1; Max-Age=60; HttpOnly
{
"result":0,
"sid":"OCXWUMGEYPGIAWWOETYXPNMVHDZIAZJP"
}