The RESTng package

[Tags: library]

RESTng is still experimental and incomplete, but many implemented features may be of interest, including: grids for presentation, hierarchical URLs automatic handling, ORM generates tables from haskell records.


[Skip to ReadMe]

Properties

Version0.1
Change logNone available
Dependenciesbase (<4), HDBC (<2.0.0), HDBC-postgresql (<2.0.0), mtl, old-time, parsec, redHandlers, xhtml, yuiGrid (==0.1) [details]
LicenseOtherLicense
AuthorRedNucleus (see AUTHORS)
Maintainernone
StabilityExperimental
CategoryWeb
UploadedFri May 15 14:15:16 UTC 2009 by SergioUrinovsky
Downloads262 total (17 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-05-18 [all 1 reports]

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for RESTng-0.1

RESTng: A framework for writing RESTful applications

It is experimental, incomplete and we are currently not actively developing it.
Anyway, there are several interesting features so we have decided to release them to share the ideas.


Features include:


Yahoo Grids:
The presentation uses the yuiGrid (grids defined by layout hints rendered with the yahoo grids).


Annotations: 
A resource can be annotated so that related information can be shown. The presentation of a resource to html is done by multiple annotations, each one possibly in different boxes with different layout hints.


Associations: 
Resource collections "has many" associations can be defined allowing:

  - Lookup functions in the Model for associated resources
  - Some annotations are available to be used like childComponent or parentComponent to list children resources or show the parent in separate boxes.
  - Hierarchical URLs are automatically handled in the control part. i.e.: 
          GET http://site/book/3/chapter/1    (get the chapter 1 of book with id 3)
          GET http://site/book/3/chapter/new  (get a form for filling data for the new chapter for book with id 3)
          POST http://site/book/3/chapter/new (create a new chapter for the book with id 3)
          and so on for updates, list and delete actions

  - Polymorphic associations are supported (i.e.: comment associated to books and also associated to authors).

ORM:
The ORM generates tables in the DB from the Haskell record type. Existing tables and attributes are kept and missing attributes are added.

Other features supported: 
  - Tags
  - Ratings
  - Comments
  - Users and login
  - CMS-like form fields validations.


Please send comments or questions to:
 - Tomas Nielsen <tanielsen@gmail.com>
 - Sergio Urinovsky <sergio.urinovsky@gmail.com>