Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (68 sloc) 3.255 kB
name: snaplet-redson
version: 0.1.0.0
synopsis: CRUD for JSON data with Redis storage
description: This snaplet provides HTTP API to /c/reate, /r/ead,
/u/pdate and /d/elete JSON objects sent by client
and stored in Redis key-value cache. CRUD methods
are mapped to HTTP `POST`, `GET`, `PUT` and
`DELETE`. Valid objects are described using model
definition syntax, which includes information on
fields and permissions. The snaplet supports
role-based user permissions system as implemented
by Snap authentication. Model definitions may
also be used by browser JavaScript to provide
interface to create or edit objects.
There is a permission-less transparent mode,
WebSocket create/delete notifications and
timeline method to serve information about
recently added objects. Ad-hoc search is
implemented in Redis and provided via snaplet
route.
There's a "snapless" part of the package, which
implements Snap-agnostic Redis CRUD operations
for key-value pair collections and may be used
for tools which operate with storage directly
without using web framework.
More of usage documentation is contained in
<https://github.com/dzhus/snaplet-redson/blob/master/README.org>
homepage: https://github.com/dzhus/snaplet-redson/
bug-reports: https://github.com/dzhus/snaplet-redson/issues/
license: BSD3
license-file: LICENSE
author: Dmitry Dzhus
maintainer: dima@dzhus.org
category: Web, Snap
build-type: Simple
cabal-version: >=1.8
tested-with: GHC == 7.4.1
stability: provisional
source-repository head
type: git
location: git://github.com/dzhus/snaplet-redson.git
library
ghc-options: -Wall -fno-warn-unused-do-bind
hs-source-dirs: src
exposed-modules: Snap.Snaplet.Redson,
Snap.Snaplet.Redson.Snapless.CRUD,
Snap.Snaplet.Redson.Snapless.Metamodel,
Snap.Snaplet.Redson.Snapless.Metamodel.Loader,
Snap.Snaplet.Redson.Util
other-modules: Snap.Snaplet.Redson.Permissions,
Snap.Snaplet.Redson.Search
build-depends:
aeson == 0.6.*,
base == 4.*,
bytestring == 0.9.*,
configurator == 0.2.*,
containers >= 0.4.1 && < 0.5,
data-lens >= 2.0.1 && < 2.1,
data-lens-template == 2.1.*,
easy-file == 0.1.*,
hedis == 0.4.*,
mtl == 2.*,
snap == 0.8.*,
snap-core == 0.8.*,
snaplet-redis == 0.1.*,
text == 0.11.*,
websockets == 0.6.*,
websockets-snap == 0.6.*
Jump to Line
Something went wrong with that request. Please try again.