api_auth_logout_create
POST
/api/auth/logout/
const url = 'https://example.com/api/auth/logout/';const options = {method: 'POST', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/logout/ \ --header 'Authorization: <Authorization>'用户退出登录
无响应正文