User logout
POST
/logout
const url = 'http://localhost:8000/api/v1/logout';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/api/v1/logoutAuthorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”User successfully logged out
Invalid credentials
Server error