Sessions

Get

GET /sessions

- Body `[]string` User IDs
GET /sessions HTTP/1.1
Host: api-x.kainonly.com:8443

# Response

HTTP/1.1 200 OK
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertz

["64bfbe69eddf04482dcf9d43","64ae547e5a94adff829274c7"]

Interrupt

DELETE /sessions/:uid

Path Parameters

NameTypeDescription

uid*

String

User ID

- Body
    - **DeletedCount**
DELETE /sessions/64bfbe69eddf04482dcf9d43 HTTP/1.1
Host: api-x.kainonly.com:8443

# Response

HTTP/1.1 200 OK
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertz

{"DeletedCount":1}

Interrupt All

POST /sessions/clear

- Body
  - **DeletedCount**
POST /sessions/clear HTTP/1.1
Host: api-x.kainonly.com:8443

# Response

HTTP/1.1 200 OK
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertz

{"DeletedCount":2}

Last updated