restsession

1.4.0 • Public • Published

restsession - Store your express-session in a RESTful way

RESTful API Specification (endpoint)

Get list of all Sessions


Request:

GET /

Response:

[
  {
    "key": "value"
  },
  ... sessions
]

Remove everything


Request:

DELETE /

Reponse:

{
  "status": "OK"
}

Get one Session


GET /{sid}

Response:

{
  "key": "value"
}

Delete one Session


DELETE /{sid}

Reponse:

{
  "status": "OK"
}

Add one Session


Request:

POST /{sid}
 
{
  "key": "value"
}

Response:

{
  "key": "value"
}

This can also be used in conjuction with the ?ping URL parameter. Then the API is able to update any existing expire times of the session if any.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.4.00
1.3.50
1.3.40
1.3.30
1.3.20
1.3.10
1.3.00
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i restsession

Weekly Downloads

0

Version

1.4.0

License

MIT

Last publish

Collaborators

  • jankal