1.4.0 • Published 6 years ago

restsession v1.4.0

Weekly downloads
22
License
MIT
Repository
github
Last release
6 years ago

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.

1.4.0

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago