Logging out
From DreamFactory
Toddappleton (Talk | contribs) |
(→Logging out as a User (non-admin)) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | For these examples assume your current session token is abc.123.efg. | + | For these examples, assume your current session token is abc.123.efg. |
=== Logging out as an Admin === | === Logging out as an Admin === | ||
− | The Admin logout API endpoint is api/v2/system/admin/session | + | The Admin logout API endpoint is api/v2/system/admin/session |
Request URL: | Request URL: | ||
Line 11: | Line 11: | ||
Note: Session token can also be supplied using X-DreamFactory-Session-Token request header. | Note: Session token can also be supplied using X-DreamFactory-Session-Token request header. | ||
− | === Logging out as a User ( | + | === Logging out as a User (Non-Admin) === |
The non-admin logout API endpoint is api/v2/user/session | The non-admin logout API endpoint is api/v2/user/session |
Latest revision as of 20:39, 14 July 2016
For these examples, assume your current session token is abc.123.efg.
Logging out as an Admin
The Admin logout API endpoint is api/v2/system/admin/session
Request URL:
DELETE https://foo.com/api/v2/system/admin/session?session_token=abc.123.efg
Note: Session token can also be supplied using X-DreamFactory-Session-Token request header.
Logging out as a User (Non-Admin)
The non-admin logout API endpoint is api/v2/user/session
Request URL:
DELETE https://foo.com/api/v2/user/session?session_token=abc.123.efg
Note: Session token can also be supplied using X-DreamFactory-Session-Token request header.